From f4058b5a56a7c40530bcd22c710bd73aca1c9e9d Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 11 Mar 2026 07:07:59 +0300 Subject: [PATCH] Update tests/__data__ --- .../__data__/expected/playlist_update/bz.m3u | 1 + tests/__data__/input/data/channels.json | 8 ++ tests/__data__/input/issues.js | 79 +++++++++++++++++++ tests/__data__/input/playlist_update/bz.m3u | 1 + .../input/playlist_validate/invalid_url.m3u | 3 + 5 files changed, 92 insertions(+) create mode 100644 tests/__data__/expected/playlist_update/bz.m3u create mode 100644 tests/__data__/input/playlist_update/bz.m3u create mode 100644 tests/__data__/input/playlist_validate/invalid_url.m3u diff --git a/tests/__data__/expected/playlist_update/bz.m3u b/tests/__data__/expected/playlist_update/bz.m3u new file mode 100644 index 0000000000..7452e53aad --- /dev/null +++ b/tests/__data__/expected/playlist_update/bz.m3u @@ -0,0 +1 @@ +#EXTM3U diff --git a/tests/__data__/input/data/channels.json b/tests/__data__/input/data/channels.json index 1a80abb8d1..faeb9f4d16 100644 --- a/tests/__data__/input/data/channels.json +++ b/tests/__data__/input/data/channels.json @@ -588,5 +588,13 @@ "country": "CA", "categories": [], "is_nsfw": false + }, + { + "id": "Channel7.bz", + "name": "Channel 7", + "network": null, + "country": "BZ", + "categories": [], + "is_nsfw": false } ] \ No newline at end of file diff --git a/tests/__data__/input/issues.js b/tests/__data__/input/issues.js index cbb6a79091..82d14a73fa 100644 --- a/tests/__data__/input/issues.js +++ b/tests/__data__/input/issues.js @@ -2393,5 +2393,84 @@ module.exports = [ timeline_url: 'https://api.github.com/repos/iptv-org/iptv/issues/25157/timeline', performed_via_github_app: null, state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/iptv/issues/15175', + repository_url: 'https://api.github.com/repos/iptv-org/iptv', + labels_url: 'https://api.github.com/repos/iptv-org/iptv/issues/15175/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/iptv/issues/15175/comments', + events_url: 'https://api.github.com/repos/iptv-org/iptv/issues/15175/events', + html_url: 'https://github.com/iptv-org/iptv/issues/15175', + id: 1884859888, + node_id: 'I_kwDOCWUK8M5wWK2C', + number: 15175, + title: 'Add: TFX', + user: { + login: 'freearhey', + id: 7253922, + node_id: 'MDQ6VXNlcjcyNTM5MjI=', + avatar_url: 'https://avatars.githubusercontent.com/u/7253922?v=4', + gravatar_id: '', + url: 'https://api.github.com/users/freearhey', + html_url: 'https://github.com/freearhey', + followers_url: 'https://api.github.com/users/freearhey/followers', + following_url: 'https://api.github.com/users/freearhey/following{/other_user}', + gists_url: 'https://api.github.com/users/freearhey/gists{/gist_id}', + starred_url: 'https://api.github.com/users/freearhey/starred{/owner}{/repo}', + subscriptions_url: 'https://api.github.com/users/freearhey/subscriptions', + organizations_url: 'https://api.github.com/users/freearhey/orgs', + repos_url: 'https://api.github.com/users/freearhey/repos', + events_url: 'https://api.github.com/users/freearhey/events{/privacy}', + received_events_url: 'https://api.github.com/users/freearhey/received_events', + type: 'User', + site_admin: false + }, + labels: [ + { + id: 5923498886, + node_id: 'LA_kwDOCWUK8M8AAAABYRFrhg', + url: 'https://api.github.com/repos/iptv-org/iptv/labels/approved', + name: 'approved', + color: '85ddde', + default: false, + description: '' + }, + { + id: 5923508587, + node_id: 'LA_kwDOCWUK8M8AAAABYRGRaw', + url: 'https://api.github.com/repos/iptv-org/iptv/labels/streams:add', + name: 'streams:add', + color: '017ff9', + default: false, + description: 'Request to add a new link to a playlist' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 1, + created_at: '2023-09-06T22:54:25Z', + updated_at: '2023-09-07T00:57:11Z', + closed_at: null, + author_association: 'COLLABORATOR', + active_lock_reason: null, + body: '### Stream ID\n\nChannel7.bz@SD\n\n### Stream URL\n\nnew: https://streamer2.nexgen.bz/07-CHANNEL7/index.m3u8\n\n### Label\n\nNone\n\n### HTTP User Agent\n\n_No response_\n\n### HTTP Referrer\n\n_No response_\n\n### Notes (optional)\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/15175/reactions', + total_count: 0, + '+1': 0, + '-1': 0, + laugh: 0, + hooray: 0, + confused: 0, + heart: 0, + rocket: 0, + eyes: 0 + }, + timeline_url: 'https://api.github.com/repos/iptv-org/iptv/issues/15175/timeline', + performed_via_github_app: null, + state_reason: null } ] diff --git a/tests/__data__/input/playlist_update/bz.m3u b/tests/__data__/input/playlist_update/bz.m3u new file mode 100644 index 0000000000..7452e53aad --- /dev/null +++ b/tests/__data__/input/playlist_update/bz.m3u @@ -0,0 +1 @@ +#EXTM3U diff --git a/tests/__data__/input/playlist_validate/invalid_url.m3u b/tests/__data__/input/playlist_validate/invalid_url.m3u new file mode 100644 index 0000000000..e593076c9e --- /dev/null +++ b/tests/__data__/input/playlist_validate/invalid_url.m3u @@ -0,0 +1,3 @@ +#EXTM3U +#EXTINF:-1 tvg-id="Channel7.bz@SD",Channel 7 +new: https://streamer2.nexgen.bz/07-CHANNEL7/index.m3u8