diff --git a/.github/ISSUE_TEMPLATE/----streams_edit.yml b/.github/ISSUE_TEMPLATE/----streams_edit.yml index be59af05ea..66d85ca4af 100644 --- a/.github/ISSUE_TEMPLATE/----streams_edit.yml +++ b/.github/ISSUE_TEMPLATE/----streams_edit.yml @@ -23,12 +23,6 @@ body: description: Channel ID from [iptv-org.github.io](https://iptv-org.github.io/). placeholder: 'BBCAmericaEast.us' - - type: input - attributes: - label: Channel Name - description: "Full name of the channel. May contain any characters except: `,`, `[`, `]`." - placeholder: 'BBC America East' - - type: dropdown attributes: label: Quality diff --git a/scripts/commands/playlist/update.ts b/scripts/commands/playlist/update.ts index 4a869f33b6..7dc54bc2f3 100644 --- a/scripts/commands/playlist/update.ts +++ b/scripts/commands/playlist/update.ts @@ -95,13 +95,11 @@ async function editStreams(loader: IssueLoader) { stream.name = channel.name } - if (data.has('channel_name')) stream.name = data.get('channel_name') if (data.has('label')) stream.label = data.get('label') if (data.has('quality')) stream.quality = data.get('quality') if (data.has('timeshift')) stream.timeshift = data.get('timeshift') if (data.has('user_agent')) stream.userAgent = data.get('user_agent') if (data.has('http_referrer')) stream.httpReferrer = data.get('http_referrer') - if (data.has('channel_name')) stream.name = data.get('channel_name') processedIssues.add(issue.number) }) diff --git a/tests/__data__/expected/streams_update/us.m3u b/tests/__data__/expected/streams_update/us.m3u index 550c990e8b..5730c94c3b 100644 --- a/tests/__data__/expected/streams_update/us.m3u +++ b/tests/__data__/expected/streams_update/us.m3u @@ -1,5 +1,5 @@ #EXTM3U -#EXTINF:-1 tvg-id="BBCAmericaEast.us" tvg-shift="-4" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 Edge/12.246",BBC America (720p) [Geo-blocked] +#EXTINF:-1 tvg-id="BBCAmericaEast.us" tvg-shift="-4" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 Edge/12.246",BBC America East (720p) [Geo-blocked] #EXTVLCOPT:http-referrer=https://example2.com/ #EXTVLCOPT:http-user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 Edge/12.246 https://servilive.com:3126/live/tele2000live.m3u8 diff --git a/tests/__data__/input/issues/streams_edit.js b/tests/__data__/input/issues/streams_edit.js index ed531ae01d..965aad86ea 100644 --- a/tests/__data__/input/issues/streams_edit.js +++ b/tests/__data__/input/issues/streams_edit.js @@ -61,7 +61,7 @@ module.exports = [ closed_at: null, author_association: 'COLLABORATOR', active_lock_reason: null, - body: '### Stream URL\n\nhttps://servilive.com:3126/live/tele2000live.m3u8\n\n### Channel ID\n\nBBCAmericaEast.us\n\n### Channel Name\n\nBBC America\n\n### Quality\n\n720p\n\n### Label\n\nGeo-blocked\n\n### HTTP User-Agent\n\nMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 Edge/12.246\n\n### HTTP Referrer\n\n_No response_\n\n### Notes\n\n_No response_\n\n### Contributing Guide\n\n- [X] I have read [Contributing Guide](https://github.com/iptv-org/iptv/blob/master/CONTRIBUTING.md)', + body: '### Stream URL\n\nhttps://servilive.com:3126/live/tele2000live.m3u8\n\n### Channel ID\n\nBBCAmericaEast.us\n\n### Quality\n\n720p\n\n### Label\n\nGeo-blocked\n\n### HTTP User-Agent\n\nMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 Edge/12.246\n\n### HTTP Referrer\n\n_No response_\n\n### Notes\n\n_No response_\n\n### Contributing Guide\n\n- [X] I have read [Contributing Guide](https://github.com/iptv-org/iptv/blob/master/CONTRIBUTING.md)', reactions: { url: 'https://api.github.com/repos/iptv-org/iptv/issues/14110/reactions', total_count: 0,