Skip to content

Commit 10245dc

Browse files
Merge pull request #17713 from iptv-org/patch-2025.05.1
Patch 2025.05.1
2 parents d7bd93e + e4bd474 commit 10245dc

5 files changed

Lines changed: 87 additions & 3 deletions

File tree

scripts/core/issueData.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export class IssueData {
1515
}
1616

1717
getBoolean(key: string): boolean | undefined {
18-
return this.missing(key) ? undefined : this._data.get(key)
18+
if (this.missing(key)) return undefined
19+
20+
return this._data.get(key) === 'TRUE' ? true : false
1921
}
2022

2123
getString(key: string): string | undefined {

tests/__data__/expected/db/update/data/feeds.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ beINMoviesTurk.tr,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i
66
Channel82.bm,SD,SD,FALSE,c/BM,Atlantic/Bermuda,eng,480i
77
M5.hu,HD,HD,TRUE,c/BR,Africa/Dakar;Africa/El_Aaiun,por;spa,1080i
88
M5.hu,West,West,FALSE,c/DO,America/Santo_Domingo,spa,480i
9+
TrueCrime.uk,Plus1,+1,FALSE,c/UK,Europe/London,eng,576i
10+
TrueCrime.uk,SD,SD,TRUE,c/UK;c/IE,Europe/London,eng,576i
911
WenzhouEconomicandEducation.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i
1012
YiwuBusinessChannel.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i
1113
YiwuNewsIntegratedChannel.cn,SD,SD,TRUE,c/CN,Africa/Johannesburg;Africa/Kigali,zho,576i

tests/__data__/input/db/update/data/feeds.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ channel,id,name,is_main,broadcast_area,timezones,languages,video_format
66
BeijingSatelliteTV.cn,SD,SD,TRUE,c/DO,America/Santo_Domingo,spa,480i
77
M5.hu,SD,SD,FALSE,c/DO,America/Santo_Domingo,spa,480i
88
M5.hu,West,West,TRUE,c/DO,America/Santo_Domingo,spa,480i
9-
Channel82.bm,SD,SD,FALSE,c/BM,America/Santo_Domingo,eng,480i
9+
Channel82.bm,SD,SD,FALSE,c/BM,America/Santo_Domingo,eng,480i
10+
TrueCrime.uk,SD,SD,TRUE,c/UK;c/IE,Europe/London,eng,576i

tests/__data__/input/db/update/issues.js

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,5 +1108,84 @@ module.exports = [
11081108
timeline_url: 'https://api.github.com/repos/iptv-org/database/issues/17612/timeline',
11091109
performed_via_github_app: null,
11101110
state_reason: null
1111+
},
1112+
{
1113+
url: 'https://api.github.com/repos/iptv-org/database/issues/9900',
1114+
repository_url: 'https://api.github.com/repos/iptv-org/database',
1115+
labels_url: 'https://api.github.com/repos/iptv-org/database/issues/9900/labels{/name}',
1116+
comments_url: 'https://api.github.com/repos/iptv-org/database/issues/9900/comments',
1117+
events_url: 'https://api.github.com/repos/iptv-org/database/issues/9900/events',
1118+
html_url: 'https://github.com/iptv-org/database/issues/9900',
1119+
id: 2129321999,
1120+
node_id: 'I_kwDOG1Kwp85y_x4L',
1121+
number: 9900,
1122+
title: 'Add: Yiwu News Integrated Channel',
1123+
user: {
1124+
login: 'AntiPontifex',
1125+
id: 81566772,
1126+
node_id: 'MDQ6VXNlcjgxNTY2Nzcy',
1127+
avatar_url: 'https://avatars.githubusercontent.com/u/81566772?v=4',
1128+
gravatar_id: '',
1129+
url: 'https://api.github.com/users/AntiPontifex',
1130+
html_url: 'https://github.com/AntiPontifex',
1131+
followers_url: 'https://api.github.com/users/AntiPontifex/followers',
1132+
following_url: 'https://api.github.com/users/AntiPontifex/following{/other_user}',
1133+
gists_url: 'https://api.github.com/users/AntiPontifex/gists{/gist_id}',
1134+
starred_url: 'https://api.github.com/users/AntiPontifex/starred{/owner}{/repo}',
1135+
subscriptions_url: 'https://api.github.com/users/AntiPontifex/subscriptions',
1136+
organizations_url: 'https://api.github.com/users/AntiPontifex/orgs',
1137+
repos_url: 'https://api.github.com/users/AntiPontifex/repos',
1138+
events_url: 'https://api.github.com/users/AntiPontifex/events{/privacy}',
1139+
received_events_url: 'https://api.github.com/users/AntiPontifex/received_events',
1140+
type: 'User',
1141+
site_admin: false
1142+
},
1143+
labels: [
1144+
{
1145+
id: 5303575699,
1146+
node_id: 'LA_kwDOG1Kwp88AAAABPB4kkw',
1147+
url: 'https://api.github.com/repos/iptv-org/database/labels/channels:add',
1148+
name: 'feeds:add',
1149+
color: '017ff8',
1150+
default: false,
1151+
description: 'Request to add a channel into the database'
1152+
},
1153+
{
1154+
id: 5366738347,
1155+
node_id: 'LA_kwDOG1Kwp88AAAABP-Htqw',
1156+
url: 'https://api.github.com/repos/iptv-org/database/labels/approved',
1157+
name: 'approved',
1158+
color: '85DDDE',
1159+
default: false,
1160+
description: ''
1161+
}
1162+
],
1163+
state: 'open',
1164+
locked: false,
1165+
assignee: null,
1166+
assignees: [],
1167+
milestone: null,
1168+
comments: 0,
1169+
created_at: '2023-10-06T02:10:41Z',
1170+
updated_at: '2023-10-06T02:52:02Z',
1171+
closed_at: null,
1172+
author_association: 'CONTRIBUTOR',
1173+
active_lock_reason: null,
1174+
body: '### Channel ID\n\nTrueCrime.uk\n\n### Feed Name\n\n+1\n\n### Main Feed\n\nFALSE\n\n### Broadcast Area\n\nc/UK\n\n### Languages\n\neng\n\n### Timezones\n\nEurope/London\n\n### Format\n\n576i\n\n### Notes\n\n_No response_',
1175+
reactions: {
1176+
url: 'https://api.github.com/repos/iptv-org/database/issues/9900/reactions',
1177+
total_count: 0,
1178+
'+1': 0,
1179+
'-1': 0,
1180+
laugh: 0,
1181+
hooray: 0,
1182+
confused: 0,
1183+
heart: 0,
1184+
rocket: 0,
1185+
eyes: 0
1186+
},
1187+
timeline_url: 'https://api.github.com/repos/iptv-org/database/issues/9900/timeline',
1188+
performed_via_github_app: null,
1189+
state_reason: null
11111190
}
11121191
]

tests/commands/db/update.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('db:update', () => {
2626
)
2727
expect(content('output/data/feeds.csv')).toEqual(content('expected/db/update/data/feeds.csv'))
2828
expect(stdout).toEqual(
29-
'OUTPUT=closes #6871, closes #5871, closes #7901, closes #17612, closes #5901, closes #5902, closes #5903, closes #5701, closes #8900, closes #5900, closes #5899, closes #5898, closes #5897, closes #5891'
29+
'OUTPUT=closes #6871, closes #5871, closes #7901, closes #17612, closes #5901, closes #5902, closes #5903, closes #5701, closes #8900, closes #9900, closes #5900, closes #5899, closes #5898, closes #5897, closes #5891'
3030
)
3131
})
3232
})

0 commit comments

Comments
 (0)