mirror of
https://github.com/Free-TV/IPTV.git
synced 2026-10-23 00:04:59 +02:00
Omit tvg-id attribute when EPG column is empty instead of emitting tvg-id=""
42 channels across 14 lists have an EPG column in their markdown table row but the column is blank. The condition in Channel.to_m3u_line() only checked for None (no EPG column at all) but not for an empty string, so these channels got a tvg-id="" attribute in the generated playlist. An empty tvg-id tells IPTV players "this channel has an EPG ID and it is the empty string", which prevents EPG matching rather than falling back to name-based matching the way a missing attribute would. Changing `if self.epg is not None` to `if self.epg` makes both None and empty string omit the attribute, matching the existing pattern used by the chno and country_code attributes on the lines just above.
This commit is contained in:
@@ -57,7 +57,7 @@ https://gstv-tnz-gsmediastreaming.preview-jpea.channel.media.azure.net/dfd06b62-
|
||||
https://master.nhkworld.jp/nhkworld-tv/playlist/live.m3u8
|
||||
#EXTINF:-1 tvg-name="ウェザーニュースLiVE" tvg-logo="https://channel.rakuten.co.jp/service/img/logo/chlogo-with-number/106_whethernews.png" tvg-id="rch_45" tvg-chno="CH 106" tvg-country="JP" group-title="日本 / Japan",ウェザーニュースLiVE
|
||||
https://rch01e-alive-hls.akamaized.net/38fb45b25cdb05a1/out/v1/4e907bfabc684a1dae10df8431a84d21/index.m3u8
|
||||
#EXTINF:-1 tvg-name="TOKYO MX チャンネル" tvg-logo="https://channel.rakuten.co.jp/service/img/logo/chlogo-with-number/108_mx.png" tvg-id="" tvg-chno="CH 108" tvg-country="JP" group-title="日本 / Japan",TOKYO MX チャンネル
|
||||
#EXTINF:-1 tvg-name="TOKYO MX チャンネル" tvg-logo="https://channel.rakuten.co.jp/service/img/logo/chlogo-with-number/108_mx.png" tvg-chno="CH 108" tvg-country="JP" group-title="日本 / Japan",TOKYO MX チャンネル
|
||||
https://cdn-uw2-prod.tsv2.amagi.tv/linear/amg01287-rakutentvjapan-tokyomx-cmaf-rakutenjp/playlist.m3u8
|
||||
#EXTINF:-1 tvg-name="日テレNEWS" tvg-logo="https://channel.rakuten.co.jp/service/img/logo/chlogo-with-number/104_ntvnews.png" tvg-id="rch_47" tvg-chno="rch_47" tvg-country="JP" group-title="日本 / Japan",日テレNEWS
|
||||
https://cdn-apne1.tsv2.amagi.tv/linear/amg01287-rakutentvjapan-news1hlscmaf-rakutenjp/playlist.m3u8
|
||||
|
||||
Reference in New Issue
Block a user