Skip to content

Commit

Permalink
is_gzipped fix applied to the change originaly introduced in #44
Browse files Browse the repository at this point in the history
  • Loading branch information
bebo-dot-dev committed Mar 12, 2020
1 parent c6d76b6 commit 7ed808f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions m3u-epg-editor-py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,7 @@ def save_new_m3u(args, m3u_entries):
def load_epg(args):
epg_response = get_epg(args.epgurl)
if epg_response.status_code == 200:
if args.epgurl.lower().endswith(".gz") or epg_response.headers['Content-Type'] == "application/x-gzip":
is_gzipped = True
is_gzipped = args.epgurl.lower().endswith(".gz") or epg_response.headers['Content-Type'] == "application/x-gzip"
is_http_response = args.epgurl.lower().startswith("http")
epg_filename = save_original_epg(is_gzipped, is_http_response, args.outdirectory, epg_response)
if is_http_response:
Expand Down

0 comments on commit 7ed808f

Please sign in to comment.