domains / / iptv-org/iptv
Validate tvg-id In Database
Whenever you edit an M3U/M3U8 playlist entry with a `#EXTINF` line, ensure the `tvg-id` is consistent with the canonical channel database. If the `tvg-id` you intend to use does not exist in the database, either (a) leave `tvg-id` empty to avoid invalid metadata, or (b) submit/add the missing channel to the database first. Also, don’t assume one feed...
Whenever you edit an M3U/M3U8 playlist entry with a #EXTINF line, ensure the tvg-id is consistent with the canonical channel database. If the tvg-id you intend to use does not exist in the database, either (a) leave tvg-id empty to avoid invalid metadata, or (b) submit/add the missing channel to the database first. Also, don’t assume one feed represents all variants: if the channel has multiple qualities/regions/logo versions (as reflected by database entries), add separate feeds per variant instead of reusing a single tvg-id.
Decision rule:
tvg-idexists in database → use that exacttvg-id.tvg-iddoes not exist → leavetvg-id=""OR create the database entry (then update playlist).- Different quality/region/version → create separate
#EXTINFentries (and database entries as needed), not just one shared line.
Example (good vs. bad):
# BAD: empty/unknown tvg-id
#EXTINF:-1 tvg-id="",Some Channel (1080p)
https://example.com/stream_1080p.m3u8
# BETTER: tvg-id matches a database entry
#EXTINF:-1 tvg-id="SomeChannel.xx",Some Channel (1080p)
https://example.com/stream_1080p.m3u8
# If you have another variant/quality that is distinct in the database:
#EXTINF:-1 tvg-id="SomeChannel.xx",Some Channel (720p)
https://example.com/stream_720p.m3u8