euzu / m3u-filter

m3u-filter (iptv filter) is an application which can filter/rename/map entries out of a playlist in M3U / XTREAM format and can save/serve it as m3u, xtream or kodi format. It can be used as reverse or redirect proxy for xtream.
MIT License
62 stars 6 forks source link

EPG does not support gz format #69

Open blockloop opened 1 month ago

blockloop commented 1 month ago

Describe the bug Many IPTV providers provide the epg in epg.gz compression because of the sheer size of the data.

To Reproduce Steps to reproduce the behavior:

sources:
  - inputs:
      - enabled: true
        type: xtream
        persist: 'streamer_1_{}.m3u'
        epg_url: 'https://epg.streamer.com/epg.gz'

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

It's important to check the content-type header and also follow redirects. gz endpoints will return Content-Type: application/gzip but many of them redirect

euzu commented 4 weeks ago

M3u-Filter does supports gzip content if the content type header is set.

No i have added a check on the downloaded bytes to check the gzip magic header, if not content type is set.

euzu commented 1 week ago

@blockloop can you confirm that it works now ? Or are there issues ?