NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
« Previous 1 … 3 4 5 6 7 … 9 Next »
Unable to Add IPTV XMLTV (m3u works fine)

 
  • 0 Vote(s) - 0 Average
Unable to Add IPTV XMLTV (m3u works fine)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#11
2021-05-14, 07:32 PM
If you want to PM me the urls, I can briefly check the import against them in the debugger, and fix if necessary/possible.

(I have no interesting watching your channels, and will only need the urls for a few minutes to check the import logic)
add45
Offline

Junior Member

usa
Posts: 21
Threads: 2
Joined: May 2021
#12
2021-05-14, 08:40 PM
(2021-05-14, 07:32 PM)sub Wrote: If you want to PM me the urls, I can briefly check the import against them in the debugger, and fix if necessary/possible.

(I have no interesting watching your channels, and will only need the urls for a few minutes to check the import logic)

Sure sending the PM now.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#13
2021-05-15, 03:01 AM
The problem is happening because the 'content type' of your xmltv url is returning 'application/xml', so it starts processing it as xml. The data is infact gzipped, so it should return a content type of "application/gzip" or "application/x-gzip", to tell it to decompress the stream before processing it.

Unfortunately there isn't anything about the url, or the response from google that indicates it's gzipped, and unfortunately NextPVR doesn't find out until it's too late.

Assuming this is your own google drive, the easiest fix is probably just to use the raw .xml file, rather than gzipping it.

Here if I force it to treat the content as though it was type "application/gzip", then it works fine.
add45
Offline

Junior Member

usa
Posts: 21
Threads: 2
Joined: May 2021
#14
2021-05-15, 05:12 PM
(2021-05-15, 03:01 AM)sub Wrote: The problem is happening because the 'content type' of your xmltv url is returning 'application/xml', so it starts processing it as xml. The data is infact gzipped, so it should return a content type of "application/gzip" or "application/x-gzip", to tell it to decompress the stream before processing it.

Unfortunately there isn't anything about the url, or the response from google that indicates it's gzipped, and unfortunately NextPVR doesn't find out until it's too late.

Assuming this is your own google drive, the easiest fix is probably just to use the raw .xml file, rather than gzipping it.

Here if I force it to treat the content as though it was type "application/gzip", then it works fine.

Ah okay that's a bit annoying that google assigns it that content type. Is that a bug on google or is it being uploaded incorrectly?

And of course the raw XML doesnt work because Google won't allow a direct download link to files of a certain size. Basically google sucks but there isnt much choices available (at least from IPTV Boss for automating).


Thanks for looking into this!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#15
2021-05-15, 05:38 PM
I've added a work around for the next build, where you can add "&contentType=application%2Fgzip" to the url and NextPVR will treat it as gzipped regardless of what google says it is. (effectively allowing you to override whatever google says the content type is)

I tried it here, and google is just ignoring this extra data on the url, but it's useful for us to flag that it is gzipped.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#16
2021-05-15, 05:53 PM
(2021-05-15, 05:12 PM)add45 Wrote: Ah okay that's a bit annoying that google assigns it that content type. Is that a bug on google or is it being uploaded incorrectly?
What extension are you using on the file name? Maybe make sure you're using ".gz". I would hope google would send the write content type with this. ie guide.gz
add45
Offline

Junior Member

usa
Posts: 21
Threads: 2
Joined: May 2021
#17
2021-05-15, 09:56 PM
(2021-05-15, 05:53 PM)sub Wrote:
(2021-05-15, 05:12 PM)add45 Wrote: Ah okay that's a bit annoying that google assigns it that content type. Is that a bug on google or is it being uploaded incorrectly?
What extension are you using on the file name? Maybe make sure you're using ".gz". I would hope google would send the write content type with this. ie guide.gz

Yeah the extension is definitely .gz, it's being generated by an epg tool so it's all good until it makes it to GDrive.

Thanks again for being so quick to add this as a feature lol, hopefully it helps others with the same issue...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#18
2021-05-15, 11:44 PM
Is it .xml.gz, or just .gz. You might need to try the latter if it’s currently the former.
add45
Offline

Junior Member

usa
Posts: 21
Threads: 2
Joined: May 2021
#19
2021-05-16, 03:00 PM
(2021-05-15, 11:44 PM)sub Wrote: Is it .xml.gz, or just .gz. You might need to try the latter if it’s currently the former.

It's .xml.gz. Is the docker image updated with the latest version? I can try once it is..
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#20
2021-05-16, 03:19 PM
Subscribing to the announcements thread https://forums.nextpvr.com/forumdisplay.php?fid=18 rather then posting release question saves everyone time.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to live stream Atanoman 4 330 2025-01-04, 07:22 PM
Last Post: Atanoman
  XMLTV folder for Docker stevil 1 373 2024-09-25, 06:56 PM
Last Post: mvallevand
  IPTV streaming uses 100% CPU callumjk 2 951 2024-04-18, 05:11 PM
Last Post: sub
  Trouble with IPTV provider with frequently changing URLs chelseatv 3 1,702 2023-11-17, 02:33 PM
Last Post: mvallevand
  Unable to write buffer. How do I debug? Sibiu 5 1,243 2023-09-18, 08:44 PM
Last Post: mvallevand
  Unable to Scan for New Channels pkscout 5 894 2023-08-11, 01:24 AM
Last Post: mvallevand
  IPTV repeat one? pewter_waggle 5 1,049 2023-03-25, 05:06 PM
Last Post: sub
  Adding multiple IPTV devices Khalimerot 21 3,716 2023-02-20, 11:13 AM
Last Post: Khalimerot
  IPTV only one stream can be recorded at a time rojerki 2 1,064 2022-05-22, 11:10 AM
Last Post: rojerki
  SOLVED: Unable to start HDHomerun Stream tredman 3 1,816 2021-01-18, 01:01 PM
Last Post: tredman

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode