Skip to content

Commit

Permalink
fixes #67
Browse files Browse the repository at this point in the history
  • Loading branch information
bebo-dot-dev committed Mar 12, 2022
1 parent e23f80d commit 579c890
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions m3u-epg-editor-py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,28 +721,28 @@ def save_new_m3u(args, m3u_entries):

meta += ' tvh-chnum="%s"' % idx

if entry.tvg_id is not None and entry.tvg_id != "":
if entry.tvg_id is not None:
channel_id = entry.tvg_id.lower() if not args.preserve_case else entry.tvg_id
meta += ' tvg-id="%s"' % channel_id

meta += ' tvg-name="%s"' % entry.tvg_name

if logo is not None and logo != "":
if logo is not None:
meta += ' tvg-logo="%s"' % logo

if entry.group_title is not None and entry.group_title != "":
if entry.group_title is not None:
meta += ' group-title="%s"' % entry.group_title

if entry.timeshift is not None and entry.timeshift != "":
if entry.timeshift is not None:
meta += ' timeshift="%s"' % entry.timeshift

if entry.catchup_days is not None and entry.catchup_days != "":
if entry.catchup_days is not None:
meta += ' catchup-days="%s"' % entry.catchup_days

if entry.catchup is not None and entry.catchup != "":
if entry.catchup is not None:
meta += ' catchup="%s"' % entry.catchup

if entry.catchup_source is not None and entry.catchup_source != "":
if entry.catchup_source is not None:
meta += ' catchup-source="%s"' % entry.catchup_source

meta += ",%s\n" % entry.name
Expand Down

0 comments on commit 579c890

Please sign in to comment.