diff --git a/tests/__data__/expected/api/channels.json b/tests/__data__/expected/api/channels.json index 0b513021..52d0a793 100644 --- a/tests/__data__/expected/api/channels.json +++ b/tests/__data__/expected/api/channels.json @@ -1 +1 @@ -[{"id":"002RadioTV.do","name":"002 Radio TV","alt_names":[],"network":null,"owners":[],"country":"DO","subdivision":null,"city":null,"broadcast_area":["c/DO"],"languages":["spa"],"categories":["general"],"is_nsfw":false,"launched":null,"closed":null,"replaced_by":null,"website":"https://www.002radio.com/","logo":"https://i.imgur.com/7oNe8xj.png"},{"id":"BeijingSatelliteTV.cn","name":"Beijing Satellite TV","alt_names":["北京卫视"],"network":null,"owners":[],"country":"CN","subdivision":null,"city":"Beijing","broadcast_area":["c/CN"],"languages":["zho"],"categories":["general"],"is_nsfw":false,"launched":"1979-05-16","closed":null,"replaced_by":null,"website":"https://www.brtn.cn/btv/","logo":"https://i.imgur.com/vsktAez.png"},{"id":"M5.hu","name":"M5","alt_names":[],"network":null,"owners":[],"country":"HU","subdivision":null,"city":null,"broadcast_area":["c/HU"],"languages":["hun"],"categories":["auto"],"is_nsfw":true,"launched":null,"closed":"2001-01-01","replaced_by":"BeijingSatelliteTV.cn","website":"https://www.mediaklikk.hu/m5/","logo":"https://i.imgur.com/y21wFd0.png"}] \ No newline at end of file +[{"id":"002RadioTV.do","name":"002 Radio TV","alt_names":[],"network":null,"owners":[],"country":"DO","subdivision":null,"city":null,"broadcast_area":["c/DO"],"languages":["spa"],"categories":["general"],"is_nsfw":false,"launched":null,"closed":null,"replaced_by":null,"website":"https://www.002radio.com/","logo":"https://i.imgur.com/7oNe8xj.png"},{"id":"BeijingSatelliteTV.cn","name":"Beijing Satellite TV","alt_names":["北京卫视"],"network":null,"owners":[],"country":"CN","subdivision":null,"city":"Beijing","broadcast_area":["c/CN"],"languages":["zho"],"categories":["general"],"is_nsfw":false,"launched":"1979-05-16","closed":null,"replaced_by":"002RadioTV.do@SD","website":"https://www.brtn.cn/btv/","logo":"https://i.imgur.com/vsktAez.png"},{"id":"M5.hu","name":"M5","alt_names":[],"network":null,"owners":[],"country":"HU","subdivision":null,"city":null,"broadcast_area":["c/HU"],"languages":["hun"],"categories":["auto"],"is_nsfw":true,"launched":null,"closed":"2001-01-01","replaced_by":"BeijingSatelliteTV.cn","website":"https://www.mediaklikk.hu/m5/","logo":"https://i.imgur.com/y21wFd0.png"}] \ No newline at end of file diff --git a/tests/__data__/expected/api/feeds.json b/tests/__data__/expected/api/feeds.json new file mode 100644 index 00000000..7ccf4ad8 --- /dev/null +++ b/tests/__data__/expected/api/feeds.json @@ -0,0 +1 @@ +[{"channel":"002RadioTV.do","id":"SD","name":"SD","is_main":true,"broadcast_area":["c/DO"],"timezones":["America/Santo_Domingo"],"languages":["spa"],"video_format":"480i","launched":null,"closed":null,"replaced_by":null},{"channel":"M5.hu","id":"SD","name":"SD","is_main":false,"broadcast_area":["c/DO"],"timezones":["America/Santo_Domingo"],"languages":["spa"],"video_format":"480i","launched":null,"closed":"2021-01-01","replaced_by":"002RadioTV.do@SD"}] \ No newline at end of file diff --git a/tests/__data__/expected/api/timezones.json b/tests/__data__/expected/api/timezones.json new file mode 100644 index 00000000..826da751 --- /dev/null +++ b/tests/__data__/expected/api/timezones.json @@ -0,0 +1 @@ +[{"id":"Africa/Abidjan","utc_offset":"+00:00","countries":["CI","BF","GH","GM","GN","IS","ML","MR","SH","SL","SN","TG"]}] \ No newline at end of file diff --git a/tests/__data__/expected/data/channels.csv b/tests/__data__/expected/data/channels.csv index 494f3030..f82ffc51 100644 --- a/tests/__data__/expected/data/channels.csv +++ b/tests/__data__/expected/data/channels.csv @@ -1,4 +1,6 @@ id,name,alt_names,network,owners,country,subdivision,city,broadcast_area,languages,categories,is_nsfw,launched,closed,replaced_by,website,logo +0TV.dk,0-TV,,,,DK,,København,c/DK,dan,general,FALSE,,,,https://0-tv.dk/,https://i.imgur.com/aR5q6mA.png +1000xHoraTV.uy,1000xHora TV,,,,UY,,Montevideo,c/UY,spa,auto,FALSE,,,M5.hu@HD,https://www.1000xhoratv.com/,https://i.imgur.com/wP3bbYr.png beINMoviesTurk.tr,beIN Movies Turk,beIN Movies Türk,BBC,Gazprom Media,TR,US-CA,London,c/TR,tur,movies,FALSE,1979-05-16,1980-05-16,M5.hu,http://www.digiturk.com.tr/,https://i.imgur.com/nw8Sa2z.png M5.hu,M5,,,Duna Médiaszolgáltató Nonprofit Zrt.,HU,,,c/HU,hun,,TRUE,,,beINMoviesTurk.tr,https://www.mediaklikk.hu/m5/,https://i.imgur.com/y21wFd0.png WenzhouEconomicandEducation.cn,Wenzhou Economic and Education,,,,CN,,Wenzhou,c/CN,zho,science,FALSE,,,,,https://www.tvchinese.net/uploads/tv/wzjjkj.jpg diff --git a/tests/__data__/expected/data/feeds.csv b/tests/__data__/expected/data/feeds.csv new file mode 100644 index 00000000..1fc623ec --- /dev/null +++ b/tests/__data__/expected/data/feeds.csv @@ -0,0 +1,10 @@ +channel,id,name,is_main,broadcast_area,timezones,languages,video_format,launched,closed,replaced_by +0TV.dk,SD,SD,TRUE,c/DK,Europe/Copenhagen,dan,576i,,, +1000xHoraTV.uy,HD,HD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i,2020-01-01,2021-01-01,M5.hu@HD +1000xHoraTV.uy,SD,SD,FALSE,c/UY,America/Montevideo,spa,576i,,,M5.hu@HD +beINMoviesTurk.tr,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i,,, +M5.hu,HD,HD,TRUE,c/BR,Africa/Dakar;Africa/El_Aaiun,por;spa,1080i,2020-01-01,,0TV.dk@SD +M5.hu,West,West,FALSE,c/DO,America/Santo_Domingo,spa,480i,,2021-01-01, +WenzhouEconomicandEducation.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i,,, +YiwuBusinessChannel.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i,,, +YiwuNewsIntegratedChannel.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i,,, \ No newline at end of file diff --git a/tests/__data__/input/data/blocklist.csv b/tests/__data__/input/export/data/blocklist.csv similarity index 100% rename from tests/__data__/input/data/blocklist.csv rename to tests/__data__/input/export/data/blocklist.csv diff --git a/tests/__data__/input/data/channels.csv b/tests/__data__/input/export/data/channels.csv similarity index 79% rename from tests/__data__/input/data/channels.csv rename to tests/__data__/input/export/data/channels.csv index 9625a3a6..6a3938ef 100644 --- a/tests/__data__/input/data/channels.csv +++ b/tests/__data__/input/export/data/channels.csv @@ -1,4 +1,4 @@ id,name,alt_names,network,owners,country,subdivision,city,broadcast_area,languages,categories,is_nsfw,launched,closed,replaced_by,website,logo 002RadioTV.do,002 Radio TV,,,,DO,,,c/DO,spa,general,FALSE,,,,https://www.002radio.com/,https://i.imgur.com/7oNe8xj.png -BeijingSatelliteTV.cn,Beijing Satellite TV,北京卫视,,,CN,,Beijing,c/CN,zho,general,FALSE,1979-05-16,,,https://www.brtn.cn/btv/,https://i.imgur.com/vsktAez.png +BeijingSatelliteTV.cn,Beijing Satellite TV,北京卫视,,,CN,,Beijing,c/CN,zho,general,FALSE,1979-05-16,,002RadioTV.do@SD,https://www.brtn.cn/btv/,https://i.imgur.com/vsktAez.png M5.hu,M5,,,,HU,,,c/HU,hun,auto,TRUE,,2001-01-01,BeijingSatelliteTV.cn,https://www.mediaklikk.hu/m5/,https://i.imgur.com/y21wFd0.png \ No newline at end of file diff --git a/tests/__data__/input/export/data/feeds.csv b/tests/__data__/input/export/data/feeds.csv new file mode 100644 index 00000000..7e00d7c9 --- /dev/null +++ b/tests/__data__/input/export/data/feeds.csv @@ -0,0 +1,3 @@ +channel,id,name,is_main,broadcast_area,timezones,languages,video_format,launched,closed,replaced_by +002RadioTV.do,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i,,, +M5.hu,SD,SD,FALSE,c/DO,America/Santo_Domingo,spa,480i,,2021-01-01,002RadioTV.do@SD \ No newline at end of file diff --git a/tests/__data__/input/export/data/timezones.csv b/tests/__data__/input/export/data/timezones.csv new file mode 100644 index 00000000..727bf547 --- /dev/null +++ b/tests/__data__/input/export/data/timezones.csv @@ -0,0 +1,2 @@ +id,utc_offset,countries +Africa/Abidjan,+00:00,CI;BF;GH;GM;GN;IS;ML;MR;SH;SL;SN;TG \ No newline at end of file diff --git a/tests/__data__/input/issues/blocklist_add_approved.js b/tests/__data__/input/issues/blocklist_add_approved.js deleted file mode 100644 index a13f3bb2..00000000 --- a/tests/__data__/input/issues/blocklist_add_approved.js +++ /dev/null @@ -1,81 +0,0 @@ -module.exports = [ - { - url: 'https://api.github.com/repos/iptv-org/database/issues/5897', - repository_url: 'https://api.github.com/repos/iptv-org/database', - labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5897/labels{/name}', - comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5897/comments', - events_url: 'https://api.github.com/repos/iptv-org/database/issues/5897/events', - html_url: 'https://github.com/iptv-org/database/issues/5897', - id: 1929261634, - node_id: 'I_kwDOG1Kwp85y_jJC', - number: 5897, - title: 'Block: HGTV Hungary', - 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: 5366738347, - node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', - url: 'https://api.github.com/repos/iptv-org/database/labels/approved', - name: 'approved', - color: '85DDDE', - default: false, - description: '' - }, - { - id: 6049155772, - node_id: 'LA_kwDOG1Kwp88AAAABaI7KvA', - url: 'https://api.github.com/repos/iptv-org/database/labels/blocklist:add', - name: 'blocklist:add', - color: 'e99695', - default: false, - description: 'Request to add a channel to the blocklist' - } - ], - state: 'open', - locked: false, - assignee: null, - assignees: [], - milestone: null, - comments: 0, - created_at: '2023-10-06T00:35:32Z', - updated_at: '2023-10-06T00:35:32Z', - closed_at: null, - author_association: 'CONTRIBUTOR', - active_lock_reason: null, - body: '### Channel ID\n\nHGTVHungary.hu\n\n### Reason\n\nNSFW\n\n### Reference\n\nhttps://github.com/iptv-org/iptv/issues/1831\n\n### Notes (optional)\n\n_No response_', - reactions: { - url: 'https://api.github.com/repos/iptv-org/database/issues/5897/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/database/issues/5897/timeline', - performed_via_github_app: null, - state_reason: null - } -] diff --git a/tests/__data__/input/issues/blocklist_remove_approved.js b/tests/__data__/input/issues/blocklist_remove_approved.js deleted file mode 100644 index 3644c21e..00000000 --- a/tests/__data__/input/issues/blocklist_remove_approved.js +++ /dev/null @@ -1,81 +0,0 @@ -module.exports = [ - { - url: 'https://api.github.com/repos/iptv-org/database/issues/5891', - repository_url: 'https://api.github.com/repos/iptv-org/database', - labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5891/labels{/name}', - comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5891/comments', - events_url: 'https://api.github.com/repos/iptv-org/database/issues/5891/events', - html_url: 'https://github.com/iptv-org/database/issues/5891', - id: 1929261634, - node_id: 'I_kwDOG1Kwp85y_jJC', - number: 5891, - title: 'Unblock: Animal Planet Africa', - 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: 5366738347, - node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', - url: 'https://api.github.com/repos/iptv-org/database/labels/approved', - name: 'approved', - color: '85DDDE', - default: false, - description: '' - }, - { - id: 6049155772, - node_id: 'LA_kwDOG1Kwp88AAAABaI7KvA', - url: 'https://api.github.com/repos/iptv-org/database/labels/blocklist:add', - name: 'blocklist:remove', - color: 'e99695', - default: false, - description: 'Request to remove a channel from the blocklist' - } - ], - state: 'open', - locked: false, - assignee: null, - assignees: [], - milestone: null, - comments: 0, - created_at: '2023-10-06T00:35:32Z', - updated_at: '2023-10-06T00:35:32Z', - closed_at: null, - author_association: 'CONTRIBUTOR', - active_lock_reason: null, - body: '### Channel ID\n\nAnimalPlanetAfrica.za\n\n### Reason\n\nOther\n\n### Notes (optional)\n\n_No response_', - reactions: { - url: 'https://api.github.com/repos/iptv-org/database/issues/5891/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/database/issues/5891/timeline', - performed_via_github_app: null, - state_reason: null - } -] diff --git a/tests/__data__/input/issues/channels_add_approved.js b/tests/__data__/input/issues/channels_add_approved.js deleted file mode 100644 index 12472861..00000000 --- a/tests/__data__/input/issues/channels_add_approved.js +++ /dev/null @@ -1,239 +0,0 @@ -module.exports = [ - { - url: 'https://api.github.com/repos/iptv-org/database/issues/5900', - repository_url: 'https://api.github.com/repos/iptv-org/database', - labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5900/labels{/name}', - comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5900/comments', - events_url: 'https://api.github.com/repos/iptv-org/database/issues/5900/events', - html_url: 'https://github.com/iptv-org/database/issues/5900', - id: 1929321995, - node_id: 'I_kwDOG1Kwp85y_x4L', - number: 5900, - title: 'Add: Yiwu News Integrated Channel', - user: { - login: 'AntiPontifex', - id: 81566772, - node_id: 'MDQ6VXNlcjgxNTY2Nzcy', - avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4', - gravatar_id: '', - url: 'https://api.github.com/users/AntiPontifex', - html_url: 'https://github.com/AntiPontifex', - followers_url: 'https://api.github.com/users/AntiPontifex/followers', - following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}', - gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}', - starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}', - subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions', - organizations_url: 'https://api.github.com/users/AntiPontifex/orgs', - repos_url: 'https://api.github.com/users/AntiPontifex/repos', - events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}', - received_events_url: 'https://api.github.com/users/AntiPontifex/received_events', - type: 'User', - site_admin: false - }, - labels: [ - { - id: 5303575699, - node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw', - url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add', - name: 'channels:add', - color: '017ff8', - default: false, - description: 'Request to add a channel into the database' - }, - { - id: 5366738347, - node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', - url: 'https://api.github.com/repos/iptv-org/database/labels/approved', - name: 'approved', - color: '85DDDE', - default: false, - description: '' - } - ], - state: 'open', - locked: false, - assignee: null, - assignees: [], - milestone: null, - comments: 0, - created_at: '2023-10-06T02:10:41Z', - updated_at: '2023-10-06T02:52:02Z', - closed_at: null, - author_association: 'CONTRIBUTOR', - active_lock_reason: null, - body: '### Channel Name\n\nYiwu News Integrated Channel\n\n### Alternative Names (optional)\n\n_No response_\n\n### Network (optional)\n\n_No response_\n\n### Owners (optional)\n\n_No response_\n\n### Country\n\nCN\n\n### Subdivision (optional)\n\n_No response_\n\n### City (optional)\n\n_No response_\n\n### Broadcast Area\n\nc/CN\n\n### Languages\n\nzho\n\n### Categories (optional)\n\nnews\n\n### NSFW\n\nFALSE\n\n### Launched (optional)\n\n_No response_\n\n### Closed (optional)\n\n_No response_\n\n### Replaced By (optional)\n\n_No response_\n\n### Website (optional)\n\n_No response_\n\n### Logo\n\nhttps://www.tvchinese.net/uploads/tv/yiwutv.jpg\n\n### Notes\n\n_No response_', - reactions: { - url: 'https://api.github.com/repos/iptv-org/database/issues/5900/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/database/issues/5900/timeline', - performed_via_github_app: null, - state_reason: null - }, - { - url: 'https://api.github.com/repos/iptv-org/database/issues/5899', - repository_url: 'https://api.github.com/repos/iptv-org/database', - labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5899/labels{/name}', - comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5899/comments', - events_url: 'https://api.github.com/repos/iptv-org/database/issues/5899/events', - html_url: 'https://github.com/iptv-org/database/issues/5899', - id: 1929318573, - node_id: 'I_kwDOG1Kwp85y_xCt', - number: 5899, - title: 'Add: Yiwu Business Channel', - user: { - login: 'AntiPontifex', - id: 81566772, - node_id: 'MDQ6VXNlcjgxNTY2Nzcy', - avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4', - gravatar_id: '', - url: 'https://api.github.com/users/AntiPontifex', - html_url: 'https://github.com/AntiPontifex', - followers_url: 'https://api.github.com/users/AntiPontifex/followers', - following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}', - gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}', - starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}', - subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions', - organizations_url: 'https://api.github.com/users/AntiPontifex/orgs', - repos_url: 'https://api.github.com/users/AntiPontifex/repos', - events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}', - received_events_url: 'https://api.github.com/users/AntiPontifex/received_events', - type: 'User', - site_admin: false - }, - labels: [ - { - id: 5303575699, - node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw', - url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add', - name: 'channels:add', - color: '017ff8', - default: false, - description: 'Request to add a channel into the database' - }, - { - id: 5366738347, - node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', - url: 'https://api.github.com/repos/iptv-org/database/labels/approved', - name: 'approved', - color: '85DDDE', - default: false, - description: '' - } - ], - state: 'open', - locked: false, - assignee: null, - assignees: [], - milestone: null, - comments: 0, - created_at: '2023-10-06T02:05:11Z', - updated_at: '2023-10-06T02:51:46Z', - closed_at: null, - author_association: 'CONTRIBUTOR', - active_lock_reason: null, - body: '### Channel Name\n\nYiwu Business Channel\n\n### Alternative Names (optional)\n\n_No response_\n\n### Network (optional)\n\n_No response_\n\n### Owners (optional)\n\n_No response_\n\n### Country\n\nCN\n\n### Subdivision (optional)\n\n_No response_\n\n### City (optional)\n\n_No response_\n\n### Broadcast Area\n\nc/CN\n\n### Languages\n\nzho\n\n### Categories (optional)\n\nbusiness\n\n### NSFW\n\nFALSE\n\n### Launched (optional)\n\n_No response_\n\n### Closed (optional)\n\n_No response_\n\n### Replaced By (optional)\n\n_No response_\n\n### Website (optional)\n\n_No response_\n\n### Logo\n\nhttps://www.tvchinese.net/uploads/tv/yiwutv.jpg\n\n### Notes\n\n_No response_', - reactions: { - url: 'https://api.github.com/repos/iptv-org/database/issues/5899/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/database/issues/5899/timeline', - performed_via_github_app: null, - state_reason: null - }, - { - url: 'https://api.github.com/repos/iptv-org/database/issues/5898', - repository_url: 'https://api.github.com/repos/iptv-org/database', - labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5898/labels{/name}', - comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5898/comments', - events_url: 'https://api.github.com/repos/iptv-org/database/issues/5898/events', - html_url: 'https://github.com/iptv-org/database/issues/5898', - id: 1929313117, - node_id: 'I_kwDOG1Kwp85y_vtd', - number: 5898, - title: 'Add: Wenzhou Economic and Education', - user: { - login: 'AntiPontifex', - id: 81566772, - node_id: 'MDQ6VXNlcjgxNTY2Nzcy', - avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4', - gravatar_id: '', - url: 'https://api.github.com/users/AntiPontifex', - html_url: 'https://github.com/AntiPontifex', - followers_url: 'https://api.github.com/users/AntiPontifex/followers', - following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}', - gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}', - starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}', - subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions', - organizations_url: 'https://api.github.com/users/AntiPontifex/orgs', - repos_url: 'https://api.github.com/users/AntiPontifex/repos', - events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}', - received_events_url: 'https://api.github.com/users/AntiPontifex/received_events', - type: 'User', - site_admin: false - }, - labels: [ - { - id: 5303575699, - node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw', - url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add', - name: 'channels:add', - color: '017ff8', - default: false, - description: 'Request to add a channel into the database' - }, - { - id: 5366738347, - node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', - url: 'https://api.github.com/repos/iptv-org/database/labels/approved', - name: 'approved', - color: '85DDDE', - default: false, - description: '' - } - ], - state: 'open', - locked: false, - assignee: null, - assignees: [], - milestone: null, - comments: 0, - created_at: '2023-10-06T01:56:32Z', - updated_at: '2023-10-06T02:51:22Z', - closed_at: null, - author_association: 'CONTRIBUTOR', - active_lock_reason: null, - body: '### Channel Name\n\nWenzhou Economic and Education\n\n### Alternative Names (optional)\n\n_No response_\n\n### Network (optional)\n\n_No response_\n\n### Owners (optional)\n\n_No response_\n\n### Country\n\nCN\n\n### Subdivision (optional)\n\n_No response_\n\n### City (optional)\n\nWenzhou\n\n### Broadcast Area\n\nc/CN\n\n### Languages\n\nzho\n\n### Categories (optional)\n\nscience\n\n### NSFW\n\nFALSE\n\n### Launched (optional)\n\n_No response_\n\n### Closed (optional)\n\n_No response_\n\n### Replaced By (optional)\n\n_No response_\n\n### Website (optional)\n\n_No response_\n\n### Logo\n\nhttps://www.tvchinese.net/uploads/tv/wzjjkj.jpg\n\n### Notes\n\n_No response_', - reactions: { - url: 'https://api.github.com/repos/iptv-org/database/issues/5898/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/database/issues/5898/timeline', - performed_via_github_app: null, - state_reason: null - } -] diff --git a/tests/__data__/input/issues/channels_edit_approved.js b/tests/__data__/input/issues/channels_edit_approved.js deleted file mode 100644 index 5370c326..00000000 --- a/tests/__data__/input/issues/channels_edit_approved.js +++ /dev/null @@ -1,160 +0,0 @@ -module.exports = [ - { - url: 'https://api.github.com/repos/iptv-org/database/issues/5901', - repository_url: 'https://api.github.com/repos/iptv-org/database', - labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5901/labels{/name}', - comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5901/comments', - events_url: 'https://api.github.com/repos/iptv-org/database/issues/5901/events', - html_url: 'https://github.com/iptv-org/database/issues/5901', - id: 1929459171, - node_id: 'I_kwDOG1Kwp85zATXj', - number: 5901, - title: 'Edit: M5', - 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: 5303574335, - node_id: 'LA_kwDOG1Kwp88AAAABPB4fPw', - url: 'https://api.github.com/repos/iptv-org/database/labels/channels:edit', - name: 'channels:edit', - color: 'E12977', - default: false, - description: 'Request to edit channel description' - }, - { - id: 5366738347, - node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', - url: 'https://api.github.com/repos/iptv-org/database/labels/approved', - name: 'approved', - color: '85DDDE', - default: false, - description: '' - } - ], - state: 'open', - locked: false, - assignee: null, - assignees: [], - milestone: null, - comments: 0, - created_at: '2023-10-06T05:25:44Z', - updated_at: '2023-10-06T05:25:44Z', - closed_at: null, - author_association: 'CONTRIBUTOR', - active_lock_reason: null, - body: '### Channel ID (required)\n\nM5.hu\n\n### Channel Name\n\n_No response_\n\n### Alternative Names\n\n_No response_\n\n### Network\n\n_No response_\n\n### Owners\n\nDuna Médiaszolgáltató Nonprofit Zrt.\n\n### Country\n\n_No response_\n\n### Subdivision\n\n_No response_\n\n### City\n\n_No response_\n\n### Broadcast Area\n\n_No response_\n\n### Languages\n\n_No response_\n\n### Categories\n\n~\n\n### NSFW\n\nNone\n\n### Launched\n\n_No response_\n\n### Closed\n\n~\n\n### Replaced By\n\n_No response_\n\n### Website\n\n_No response_\n\n### Logo\n\n_No response_\n\n### Notes\n\n_No response_', - reactions: { - url: 'https://api.github.com/repos/iptv-org/database/issues/5901/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/database/issues/5901/timeline', - performed_via_github_app: null, - state_reason: null - }, - { - url: 'https://api.github.com/repos/iptv-org/database/issues/5701', - repository_url: 'https://api.github.com/repos/iptv-org/database', - labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5701/labels{/name}', - comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5701/comments', - events_url: 'https://api.github.com/repos/iptv-org/database/issues/5701/events', - html_url: 'https://github.com/iptv-org/database/issues/5701', - id: 1929459171, - node_id: 'I_kwDOG1Kwp85zATXj', - number: 5701, - title: 'Edit: M5', - 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: 5303574335, - node_id: 'LA_kwDOG1Kwp88AAAABPB4fPw', - url: 'https://api.github.com/repos/iptv-org/database/labels/channels:edit', - name: 'channels:edit', - color: 'E12977', - default: false, - description: 'Request to edit channel description' - }, - { - id: 5366738347, - node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', - url: 'https://api.github.com/repos/iptv-org/database/labels/approved', - name: 'approved', - color: '85DDDE', - default: false, - description: '' - } - ], - state: 'open', - locked: false, - assignee: null, - assignees: [], - milestone: null, - comments: 0, - created_at: '2023-10-06T05:25:44Z', - updated_at: '2023-10-06T05:25:44Z', - closed_at: null, - author_association: 'CONTRIBUTOR', - active_lock_reason: null, - body: '### Channel ID (required)\n\nBeijingSatelliteTV.cn\n\n### Channel Name\n\nbeIN Movies Turk\n\n### Alternative Names\n\nbeIN Movies Türk\n\n### Network\n\nBBC\n\n### Owners\n\nGazprom Media\n\n### Country\n\nTR\n\n### Subdivision\n\nUS-CA\n\n### City\n\nLondon\n\n### Broadcast Area\n\nc/TR\n\n### Languages\n\ntur\n\n### Categories\n\nmovies\n\n### NSFW\nTRUE\n\n### Launched\n\n1979-05-16\n\n### Closed\n\n1980-05-16\n\n### Replaced By\n\nM5.hu\n\n### Website\n\nhttp://www.digiturk.com.tr/\n\n### Logo\n\nhttps://i.imgur.com/nw8Sa2z.png\n\n### Notes\n\n_No response_', - reactions: { - url: 'https://api.github.com/repos/iptv-org/database/issues/5701/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/database/issues/5701/timeline', - performed_via_github_app: null, - state_reason: null - } -] diff --git a/tests/__data__/input/issues/channels_remove_approved.js b/tests/__data__/input/issues/channels_remove_approved.js deleted file mode 100644 index 96ff8cad..00000000 --- a/tests/__data__/input/issues/channels_remove_approved.js +++ /dev/null @@ -1,81 +0,0 @@ -module.exports = [ - { - url: 'https://api.github.com/repos/iptv-org/database/issues/5871', - repository_url: 'https://api.github.com/repos/iptv-org/database', - labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5871/labels{/name}', - comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5871/comments', - events_url: 'https://api.github.com/repos/iptv-org/database/issues/5871/events', - html_url: 'https://github.com/iptv-org/database/issues/5871', - id: 1929261634, - node_id: 'I_kwDOG1Kwp85y_jJC', - number: 5871, - title: 'Remove: 002 Radio TV', - 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: 5366738347, - node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', - url: 'https://api.github.com/repos/iptv-org/database/labels/approved', - name: 'approved', - color: '85DDDE', - default: false, - description: '' - }, - { - id: 6049155772, - node_id: 'LA_kwDOG1Kwp88AAAABaI7KvA', - url: 'https://api.github.com/repos/iptv-org/database/labels/blocklist:add', - name: 'channels:remove', - color: 'e99695', - default: false, - description: 'Request to remove a channel' - } - ], - state: 'open', - locked: false, - assignee: null, - assignees: [], - milestone: null, - comments: 0, - created_at: '2023-10-06T00:35:32Z', - updated_at: '2023-10-06T00:35:32Z', - closed_at: null, - author_association: 'CONTRIBUTOR', - active_lock_reason: null, - body: '### Channel ID\n\n002RadioTV.do\n\n### Reason\n\nOther\n\n### Notes (optional)\n\n_No response_', - reactions: { - url: 'https://api.github.com/repos/iptv-org/database/issues/5871/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/database/issues/5871/timeline', - performed_via_github_app: null, - state_reason: null - } -] diff --git a/tests/__data__/input/update/data/blocklist.csv b/tests/__data__/input/update/data/blocklist.csv new file mode 100644 index 00000000..a0e89ff7 --- /dev/null +++ b/tests/__data__/input/update/data/blocklist.csv @@ -0,0 +1,3 @@ +channel,reason,ref +AnimalPlanetAfrica.za,dmca,https://github.com/iptv-org/iptv/issues/1831 +BeijingSatelliteTV.cn,dmca,https://github.com/iptv-org/iptv/issues/1831 \ No newline at end of file diff --git a/tests/__data__/input/update/data/channels.csv b/tests/__data__/input/update/data/channels.csv new file mode 100644 index 00000000..187e395b --- /dev/null +++ b/tests/__data__/input/update/data/channels.csv @@ -0,0 +1,6 @@ +id,name,alt_names,network,owners,country,subdivision,city,broadcast_area,languages,categories,is_nsfw,launched,closed,replaced_by,website,logo +002RadioTV.do,002 Radio TV,,,,DO,,,c/DO,spa,general,FALSE,,,,https://www.002radio.com/,https://i.imgur.com/7oNe8xj.png +0TV.dk,0-TV,,,,DK,,København,c/DK,dan,general,FALSE,,,01TV.fr@SD,https://0-tv.dk/,https://i.imgur.com/aR5q6mA.png +1000xHoraTV.uy,1000xHora TV,,,,UY,,Montevideo,c/UY,spa,auto,FALSE,,,M5.hu@SD,https://www.1000xhoratv.com/,https://i.imgur.com/wP3bbYr.png +BeijingSatelliteTV.cn,Beijing Satellite TV,北京卫视,,,CN,,Beijing,c/CN,zho,general,FALSE,1979-05-16,,002RadioTV.do@SD,https://www.brtn.cn/btv/,https://i.imgur.com/vsktAez.png +M5.hu,M5,,,,HU,,,c/HU,hun,auto,TRUE,,2001-01-01,BeijingSatelliteTV.cn,https://www.mediaklikk.hu/m5/,https://i.imgur.com/y21wFd0.png \ No newline at end of file diff --git a/tests/__data__/input/update/data/feeds.csv b/tests/__data__/input/update/data/feeds.csv new file mode 100644 index 00000000..fa3fbf5a --- /dev/null +++ b/tests/__data__/input/update/data/feeds.csv @@ -0,0 +1,8 @@ +channel,id,name,is_main,broadcast_area,timezones,languages,video_format,launched,closed,replaced_by +002RadioTV.do,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i,,, +01TV.fr,SD,SD,TRUE,c/FR,Europe/Paris,fra,576i,,, +0TV.dk,SD,SD,TRUE,c/DK,Europe/Copenhagen,dan,576i,,,01TV.fr@SD +1000xHoraTV.uy,SD,SD,TRUE,c/UY,America/Montevideo,spa,576i,,,M5.hu@SD +BeijingSatelliteTV.cn,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i,,,002RadioTV.do@SD +M5.hu,SD,SD,FALSE,c/DO,America/Santo_Domingo,spa,480i,,2021-01-01,002RadioTV.do@SD +M5.hu,West,West,TRUE,c/DO,America/Santo_Domingo,spa,480i,,2021-01-01, \ No newline at end of file diff --git a/tests/__data__/input/update/data/timezones.csv b/tests/__data__/input/update/data/timezones.csv new file mode 100644 index 00000000..727bf547 --- /dev/null +++ b/tests/__data__/input/update/data/timezones.csv @@ -0,0 +1,2 @@ +id,utc_offset,countries +Africa/Abidjan,+00:00,CI;BF;GH;GM;GN;IS;ML;MR;SH;SL;SN;TG \ No newline at end of file diff --git a/tests/__data__/input/update/issues.js b/tests/__data__/input/update/issues.js new file mode 100644 index 00000000..b49cee64 --- /dev/null +++ b/tests/__data__/input/update/issues.js @@ -0,0 +1,871 @@ +module.exports = [ + { + url: 'https://api.github.com/repos/iptv-org/database/issues/5897', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5897/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5897/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/5897/events', + html_url: 'https://github.com/iptv-org/database/issues/5897', + id: 1929261634, + node_id: 'I_kwDOG1Kwp85y_jJC', + number: 5897, + title: 'Block: HGTV Hungary', + 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: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + }, + { + id: 6049155772, + node_id: 'LA_kwDOG1Kwp88AAAABaI7KvA', + url: 'https://api.github.com/repos/iptv-org/database/labels/blocklist:add', + name: 'blocklist:add', + color: 'e99695', + default: false, + description: 'Request to add a channel to the blocklist' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T00:35:32Z', + updated_at: '2023-10-06T00:35:32Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID\n\nHGTVHungary.hu\n\n### Reason\n\nNSFW\n\n### Reference\n\nhttps://github.com/iptv-org/iptv/issues/1831\n\n### Notes (optional)\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/5897/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/database/issues/5897/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/5891', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5891/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5891/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/5891/events', + html_url: 'https://github.com/iptv-org/database/issues/5891', + id: 1929261634, + node_id: 'I_kwDOG1Kwp85y_jJC', + number: 5891, + title: 'Unblock: Animal Planet Africa', + 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: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + }, + { + id: 6049155772, + node_id: 'LA_kwDOG1Kwp88AAAABaI7KvA', + url: 'https://api.github.com/repos/iptv-org/database/labels/blocklist:add', + name: 'blocklist:remove', + color: 'e99695', + default: false, + description: 'Request to remove a channel from the blocklist' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T00:35:32Z', + updated_at: '2023-10-06T00:35:32Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID\n\nAnimalPlanetAfrica.za\n\n### Reason\n\nOther\n\n### Notes (optional)\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/5891/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/database/issues/5891/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/5900', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5900/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5900/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/5900/events', + html_url: 'https://github.com/iptv-org/database/issues/5900', + id: 1929321995, + node_id: 'I_kwDOG1Kwp85y_x4L', + number: 5900, + title: 'Add: Yiwu News Integrated Channel', + user: { + login: 'AntiPontifex', + id: 81566772, + node_id: 'MDQ6VXNlcjgxNTY2Nzcy', + avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4', + gravatar_id: '', + url: 'https://api.github.com/users/AntiPontifex', + html_url: 'https://github.com/AntiPontifex', + followers_url: 'https://api.github.com/users/AntiPontifex/followers', + following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}', + gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}', + starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}', + subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions', + organizations_url: 'https://api.github.com/users/AntiPontifex/orgs', + repos_url: 'https://api.github.com/users/AntiPontifex/repos', + events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}', + received_events_url: 'https://api.github.com/users/AntiPontifex/received_events', + type: 'User', + site_admin: false + }, + labels: [ + { + id: 5303575699, + node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw', + url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add', + name: 'channels:add', + color: '017ff8', + default: false, + description: 'Request to add a channel into the database' + }, + { + id: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T02:10:41Z', + updated_at: '2023-10-06T02:52:02Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel Name\n\nYiwu News Integrated Channel\n\n### Alternative Names (optional)\n\n_No response_\n\n### Network (optional)\n\n_No response_\n\n### Owners (optional)\n\n_No response_\n\n### Country\n\nCN\n\n### Subdivision (optional)\n\n_No response_\n\n### City (optional)\n\n_No response_\n\n### Categories (optional)\n\nnews\n\n### NSFW\n\nFALSE\n\n### Website (optional)\n\n_No response_\n\n### Logo\n\nhttps://www.tvchinese.net/uploads/tv/yiwutv.jpg\n\n### Feed Name\n\nSD\n\n### Broadcast Area\n\nc/CN\n\n### Languages\n\nzho\n\n### Timezones\n\nAfrica/Johannesburg;Africa/Kigali\n\n### Format\n\n576i\n\n### Launched (optional)\n\n_No response_\n\n### Closed (optional)\n\n_No response_\n\n### Replaced By (optional)\n\n_No response_\n\n### Notes\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/5900/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/database/issues/5900/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/5899', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5899/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5899/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/5899/events', + html_url: 'https://github.com/iptv-org/database/issues/5899', + id: 1929318573, + node_id: 'I_kwDOG1Kwp85y_xCt', + number: 5899, + title: 'Add: Yiwu Business Channel', + user: { + login: 'AntiPontifex', + id: 81566772, + node_id: 'MDQ6VXNlcjgxNTY2Nzcy', + avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4', + gravatar_id: '', + url: 'https://api.github.com/users/AntiPontifex', + html_url: 'https://github.com/AntiPontifex', + followers_url: 'https://api.github.com/users/AntiPontifex/followers', + following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}', + gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}', + starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}', + subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions', + organizations_url: 'https://api.github.com/users/AntiPontifex/orgs', + repos_url: 'https://api.github.com/users/AntiPontifex/repos', + events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}', + received_events_url: 'https://api.github.com/users/AntiPontifex/received_events', + type: 'User', + site_admin: false + }, + labels: [ + { + id: 5303575699, + node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw', + url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add', + name: 'channels:add', + color: '017ff8', + default: false, + description: 'Request to add a channel into the database' + }, + { + id: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T02:05:11Z', + updated_at: '2023-10-06T02:51:46Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel Name\n\nYiwu Business Channel\n\n### Alternative Names (optional)\n\n_No response_\n\n### Network (optional)\n\n_No response_\n\n### Owners (optional)\n\n_No response_\n\n### Country\n\nCN\n\n### Subdivision (optional)\n\n_No response_\n\n### City (optional)\n\n_No response_\n\n### Categories (optional)\n\nbusiness\n\n### NSFW\n\nFALSE\n\n### Website (optional)\n\n_No response_\n\n### Logo\n\nhttps://www.tvchinese.net/uploads/tv/yiwutv.jpg\n\n### Feed Name\n\nSD\n\n### Broadcast Area\n\nc/CN\n\n### Languages\n\nzho\n\n### Timezones\n\nAfrica/Johannesburg;Africa/Kigali\n\n### Format\n\n576i\n\n### Launched (optional)\n\n_No response_\n\n### Closed (optional)\n\n_No response_\n\n### Replaced By (optional)\n\n_No response_\n\n### Notes\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/5899/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/database/issues/5899/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/5898', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5898/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5898/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/5898/events', + html_url: 'https://github.com/iptv-org/database/issues/5898', + id: 1929313117, + node_id: 'I_kwDOG1Kwp85y_vtd', + number: 5898, + title: 'Add: Wenzhou Economic and Education', + user: { + login: 'AntiPontifex', + id: 81566772, + node_id: 'MDQ6VXNlcjgxNTY2Nzcy', + avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4', + gravatar_id: '', + url: 'https://api.github.com/users/AntiPontifex', + html_url: 'https://github.com/AntiPontifex', + followers_url: 'https://api.github.com/users/AntiPontifex/followers', + following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}', + gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}', + starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}', + subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions', + organizations_url: 'https://api.github.com/users/AntiPontifex/orgs', + repos_url: 'https://api.github.com/users/AntiPontifex/repos', + events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}', + received_events_url: 'https://api.github.com/users/AntiPontifex/received_events', + type: 'User', + site_admin: false + }, + labels: [ + { + id: 5303575699, + node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw', + url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add', + name: 'channels:add', + color: '017ff8', + default: false, + description: 'Request to add a channel into the database' + }, + { + id: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T01:56:32Z', + updated_at: '2023-10-06T02:51:22Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel Name\n\nWenzhou Economic and Education\n\n### Alternative Names (optional)\n\n_No response_\n\n### Network (optional)\n\n_No response_\n\n### Owners (optional)\n\n_No response_\n\n### Country\n\nCN\n\n### Subdivision (optional)\n\n_No response_\n\n### City (optional)\n\nWenzhou\n\n### Categories (optional)\n\nscience\n\n### NSFW\n\nFALSE\n\n### Website (optional)\n\n_No response_\n\n### Logo\n\nhttps://www.tvchinese.net/uploads/tv/wzjjkj.jpg\n\n### Feed Name\n\nSD\n\n### Broadcast Area\n\nc/CN\n\n### Languages\n\nzho\n\n### Timezones\n\nAfrica/Johannesburg;Africa/Kigali\n\n### Format\n\n576i\n\n### Launched (optional)\n\n_No response_\n\n### Closed (optional)\n\n_No response_\n\n### Replaced By (optional)\n\n_No response_\n\n### Notes\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/5898/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/database/issues/5898/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/5901', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5901/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5901/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/5901/events', + html_url: 'https://github.com/iptv-org/database/issues/5901', + id: 1929459171, + node_id: 'I_kwDOG1Kwp85zATXj', + number: 5901, + title: 'Edit: M5', + 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: 5303574335, + node_id: 'LA_kwDOG1Kwp88AAAABPB4fPw', + url: 'https://api.github.com/repos/iptv-org/database/labels/channels:edit', + name: 'channels:edit', + color: 'E12977', + default: false, + description: 'Request to edit channel description' + }, + { + id: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T05:25:44Z', + updated_at: '2023-10-06T05:25:44Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID (required)\n\nM5.hu\n\n### Channel Name\n\n_No response_\n\n### Alternative Names\n\n_No response_\n\n### Network\n\n_No response_\n\n### Owners\n\nDuna Médiaszolgáltató Nonprofit Zrt.\n\n### Country\n\n_No response_\n\n### Subdivision\n\n_No response_\n\n### City\n\n_No response_\n\n### Broadcast Area\n\n_No response_\n\n### Languages\n\n_No response_\n\n### Categories\n\n~\n\n### NSFW\n\nNone\n\n### Launched\n\n_No response_\n\n### Closed\n\n~\n\n### Replaced By\n\n_No response_\n\n### Website\n\n_No response_\n\n### Logo\n\n_No response_\n\n### Notes\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/5901/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/database/issues/5901/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/5701', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5701/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5701/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/5701/events', + html_url: 'https://github.com/iptv-org/database/issues/5701', + id: 1929459171, + node_id: 'I_kwDOG1Kwp85zATXj', + number: 5701, + title: 'Edit: M5', + 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: 5303574335, + node_id: 'LA_kwDOG1Kwp88AAAABPB4fPw', + url: 'https://api.github.com/repos/iptv-org/database/labels/channels:edit', + name: 'channels:edit', + color: 'E12977', + default: false, + description: 'Request to edit channel description' + }, + { + id: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T05:25:44Z', + updated_at: '2023-10-06T05:25:44Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID (required)\n\nBeijingSatelliteTV.cn\n\n### Channel Name\n\nbeIN Movies Turk\n\n### Alternative Names\n\nbeIN Movies Türk\n\n### Network\n\nBBC\n\n### Owners\n\nGazprom Media\n\n### Country\n\nTR\n\n### Subdivision\n\nUS-CA\n\n### City\n\nLondon\n\n### Broadcast Area\n\nc/TR\n\n### Languages\n\ntur\n\n### Categories\n\nmovies\n\n### NSFW\nTRUE\n\n### Launched\n\n1979-05-16\n\n### Closed\n\n1980-05-16\n\n### Replaced By\n\nM5.hu\n\n### Website\n\nhttp://www.digiturk.com.tr/\n\n### Logo\n\nhttps://i.imgur.com/nw8Sa2z.png\n\n### Notes\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/5701/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/database/issues/5701/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/5871', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/5871/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/5871/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/5871/events', + html_url: 'https://github.com/iptv-org/database/issues/5871', + id: 1929261634, + node_id: 'I_kwDOG1Kwp85y_jJC', + number: 5871, + title: 'Remove: 002 Radio TV', + 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: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + }, + { + id: 6049155772, + node_id: 'LA_kwDOG1Kwp88AAAABaI7KvA', + url: 'https://api.github.com/repos/iptv-org/database/labels/blocklist:add', + name: 'channels:remove', + color: 'e99695', + default: false, + description: 'Request to remove a channel' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T00:35:32Z', + updated_at: '2023-10-06T00:35:32Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID\n\n002RadioTV.do\n\n### Reason\n\nOther\n\n### Notes (optional)\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/5871/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/database/issues/5871/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/8900', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/8900/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/8900/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/8900/events', + html_url: 'https://github.com/iptv-org/database/issues/8900', + id: 2129321995, + node_id: 'I_kwDOG1Kwp85y_x4L', + number: 8900, + title: 'Add: Yiwu News Integrated Channel', + user: { + login: 'AntiPontifex', + id: 81566772, + node_id: 'MDQ6VXNlcjgxNTY2Nzcy', + avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4', + gravatar_id: '', + url: 'https://api.github.com/users/AntiPontifex', + html_url: 'https://github.com/AntiPontifex', + followers_url: 'https://api.github.com/users/AntiPontifex/followers', + following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}', + gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}', + starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}', + subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions', + organizations_url: 'https://api.github.com/users/AntiPontifex/orgs', + repos_url: 'https://api.github.com/users/AntiPontifex/repos', + events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}', + received_events_url: 'https://api.github.com/users/AntiPontifex/received_events', + type: 'User', + site_admin: false + }, + labels: [ + { + id: 5303575699, + node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw', + url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add', + name: 'feeds:add', + color: '017ff8', + default: false, + description: 'Request to add a channel into the database' + }, + { + id: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T02:10:41Z', + updated_at: '2023-10-06T02:52:02Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID\n\n1000xHoraTV.uy\n\n### Feed Name\n\nHD\n\n### Main Feed\n\nTRUE\n\n### Broadcast Area\n\nc/CN\n\n### Languages\n\nzho\n\n### Timezones\n\nAfrica/Johannesburg;Africa/Kigali\n\n### Format\n\n576i\n\n### Launched (optional)\n\n2020-01-01\n\n### Closed (optional)\n\n2021-01-01\n\n### Replaced By (optional)\n\nM5.hu@HD\n\n### Notes\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/8900/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/database/issues/8900/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/7901', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/7901/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/7901/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/7901/events', + html_url: 'https://github.com/iptv-org/database/issues/7901', + id: 2129459171, + node_id: 'I_kwDOG1Kwp85zATXj', + number: 7901, + title: 'Edit: M5@SD', + 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: 5303574335, + node_id: 'LA_kwDOG1Kwp88AAAABPB4fPw', + url: 'https://api.github.com/repos/iptv-org/database/labels/channels:edit', + name: 'feeds:edit', + color: 'E12977', + default: false, + description: 'Request to edit channel description' + }, + { + id: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T05:25:44Z', + updated_at: '2023-10-06T05:25:44Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID (required)\n\nM5.hu\n\n### Feed ID (required)\n\nSD\n\n### Feed Name\n\nHD\n\n### Main Feed\n\nTRUE\n\n### Broadcast Area\n\nc/BR\n\n### Timezones\n\nAfrica/Dakar;Africa/El_Aaiun\n\n### Languages\n\npor;spa\n\n### Format\n\n1080i\n\n### Launched\n\n2020-01-01\n\n### Closed\n\n~\n\n### Replaced By\n\n0TV.dk@SD\n\n### Notes\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/7901/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/database/issues/7901/timeline', + performed_via_github_app: null, + state_reason: null + }, + { + url: 'https://api.github.com/repos/iptv-org/database/issues/6871', + repository_url: 'https://api.github.com/repos/iptv-org/database', + labels_url: 'https://api.github.com/repos/iptv-org/database/issues/6871/labels{/name}', + comments_url: 'https://api.github.com/repos/iptv-org/database/issues/6871/comments', + events_url: 'https://api.github.com/repos/iptv-org/database/issues/6871/events', + html_url: 'https://github.com/iptv-org/database/issues/6871', + id: 2029261634, + node_id: 'I_kwDOG1Kwp85y_jJC', + number: 6871, + title: 'Remove: 01TV.fr@SD', + 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: 5366738347, + node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw', + url: 'https://api.github.com/repos/iptv-org/database/labels/approved', + name: 'approved', + color: '85DDDE', + default: false, + description: '' + }, + { + id: 6049155772, + node_id: 'LA_kwDOG1Kwp88AAAABaI7KvA', + url: 'https://api.github.com/repos/iptv-org/database/labels/blocklist:add', + name: 'feeds:remove', + color: 'e99695', + default: false, + description: 'Request to remove a feed' + } + ], + state: 'open', + locked: false, + assignee: null, + assignees: [], + milestone: null, + comments: 0, + created_at: '2023-10-06T00:35:32Z', + updated_at: '2023-10-06T00:35:32Z', + closed_at: null, + author_association: 'CONTRIBUTOR', + active_lock_reason: null, + body: '### Channel ID\n\n01TV.fr\n\n### Feed ID\n\nSD\n\n### Reason\n\nOther\n\n### Notes (optional)\n\n_No response_', + reactions: { + url: 'https://api.github.com/repos/iptv-org/database/issues/6871/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/database/issues/6871/timeline', + performed_via_github_app: null, + state_reason: null + } +] diff --git a/tests/__data__/input/validate/duplicate/feeds.csv b/tests/__data__/input/validate/duplicate/feeds.csv new file mode 100644 index 00000000..bf4567e7 --- /dev/null +++ b/tests/__data__/input/validate/duplicate/feeds.csv @@ -0,0 +1,3 @@ +channel,id,name,is_main,broadcast_area,timezones,languages,video_format,launched,closed,replaced_by +002RadioTV.do,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i,,, +002RadioTV.do,SD,HD,FALSE,c/DO,America/Santo_Domingo,spa,1080i,,, \ No newline at end of file diff --git a/tests/__data__/input/validate/duplicate/timezones.csv b/tests/__data__/input/validate/duplicate/timezones.csv new file mode 100644 index 00000000..5ebde14f --- /dev/null +++ b/tests/__data__/input/validate/duplicate/timezones.csv @@ -0,0 +1,2 @@ +id,utc_offset,countries +America/Santo_Domingo,-04:00,DO \ No newline at end of file diff --git a/tests/__data__/input/validate/invalid_value/feeds.csv b/tests/__data__/input/validate/invalid_value/feeds.csv new file mode 100644 index 00000000..8e25a69e --- /dev/null +++ b/tests/__data__/input/validate/invalid_value/feeds.csv @@ -0,0 +1,4 @@ +channel,id,name,is_main,broadcast_area,timezones,languages,video_format,launched,closed,replaced_by +0TV.dk,SD,SD,TRUE,c/DK,Europe/Copenhagen,dan,576I,,,M5.hu@HD +002RadioTV.do,SD,SD,TRUE,c/DK,Africa/Accra,dan,576i,,, +002RadioTV.do,HD,HD,TRUE,c/DK,Africa/Accra,dan,576i,,, \ No newline at end of file diff --git a/tests/__data__/input/validate/invalid_value/timezones.csv b/tests/__data__/input/validate/invalid_value/timezones.csv new file mode 100644 index 00000000..0ce74c35 --- /dev/null +++ b/tests/__data__/input/validate/invalid_value/timezones.csv @@ -0,0 +1,2 @@ +id,utc_offset,countries +Africa/Accra,+00:00,GH \ No newline at end of file diff --git a/tests/__data__/input/validate/valid_data/feeds.csv b/tests/__data__/input/validate/valid_data/feeds.csv new file mode 100644 index 00000000..e4ef3c33 --- /dev/null +++ b/tests/__data__/input/validate/valid_data/feeds.csv @@ -0,0 +1,4 @@ +channel,id,name,is_main,broadcast_area,timezones,languages,video_format,launched,closed,replaced_by +PeoplesWeather.do,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i,,, +PeoplesWeather.do,HD,HD,FALSE,c/DO,America/Santo_Domingo,spa,1080i,,,KSTVKids.ua +PeoplesWeather.do,West,West,FALSE,c/DO,America/Santo_Domingo,spa,1080i,,, \ No newline at end of file diff --git a/tests/__data__/input/validate/valid_data/timezones.csv b/tests/__data__/input/validate/valid_data/timezones.csv new file mode 100644 index 00000000..5ebde14f --- /dev/null +++ b/tests/__data__/input/validate/valid_data/timezones.csv @@ -0,0 +1,2 @@ +id,utc_offset,countries +America/Santo_Domingo,-04:00,DO \ No newline at end of file