Merge branch 'master' into pr/15708

This commit is contained in:
freearhey 2025-03-02 18:51:25 +03:00
commit 48f19cd172
14 changed files with 2169 additions and 1394 deletions

View file

@ -13,6 +13,17 @@ body:
validations:
required: true
- type: dropdown
id: reason
attributes:
label: Reason
description: Reason for blocking the channel
options:
- 'DMCA'
- 'NSFW'
validations:
required: true
- type: input
id: ref
attributes:

View file

@ -107,6 +107,7 @@ List of channels blocked at the request of copyright holders.
| Field | Description | Required | Example |
| ------- | ----------------------------------------------- | -------- | --------------------------------- |
| channel | Channel ID | Required | `AnimalPlanetAfrica.us` |
| reason | Reason for blocking | Required | `dmca` |
| ref | Link to removal request or DMCA takedown notice | Required | `https://example.com/issues/0000` |
## Channel Logo Guidelines

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -3198,7 +3198,6 @@ UK,Wales,GB-WLS
UM,Palmyra Atoll,UM-95
US,Alabama,US-AL
US,Alaska,US-AK
US,American Samoa,US-AS
US,Arizona,US-AZ
US,Arkansas,US-AR
US,California,US-CA
@ -3208,7 +3207,6 @@ US,Delaware,US-DE
US,District of Columbia,US-DC
US,Florida,US-FL
US,Georgia,US-GA
US,Guam,US-GU
US,Hawaii,US-HI
US,Idaho,US-ID
US,Illinois,US-IL
@ -3233,18 +3231,15 @@ US,New Mexico,US-NM
US,New York,US-NY
US,North Carolina,US-NC
US,North Dakota,US-ND
US,Northern Mariana Islands,US-MP
US,Ohio,US-OH
US,Oklahoma,US-OK
US,Oregon,US-OR
US,Pennsylvania,US-PA
US,Puerto Rico,US-PR
US,Rhode Island,US-RI
US,South Carolina,US-SC
US,South Dakota,US-SD
US,Tennessee,US-TN
US,Texas,US-TX
US,U.S. Virgin Islands,US-VI
US,United States Minor Outlying Islands,US-UM
US,Utah,US-UT
US,Vermont,US-VT

1 country name code
3198 UM Palmyra Atoll UM-95
3199 US Alabama US-AL
3200 US Alaska US-AK
US American Samoa US-AS
3201 US Arizona US-AZ
3202 US Arkansas US-AR
3203 US California US-CA
3207 US District of Columbia US-DC
3208 US Florida US-FL
3209 US Georgia US-GA
US Guam US-GU
3210 US Hawaii US-HI
3211 US Idaho US-ID
3212 US Illinois US-IL
3231 US New York US-NY
3232 US North Carolina US-NC
3233 US North Dakota US-ND
US Northern Mariana Islands US-MP
3234 US Ohio US-OH
3235 US Oklahoma US-OK
3236 US Oregon US-OR
3237 US Pennsylvania US-PA
US Puerto Rico US-PR
3238 US Rhode Island US-RI
3239 US South Carolina US-SC
3240 US South Dakota US-SD
3241 US Tennessee US-TN
3242 US Texas US-TX
US U.S. Virgin Islands US-VI
3243 US United States Minor Outlying Islands US-UM
3244 US Utah US-UT
3245 US Vermont US-VT

View file

@ -185,12 +185,14 @@ async function blockChannels({ loader }: { loader: IssueLoader }) {
if (found) return
const channel = data.getString('channel_id')
const reason = data.getString('reason')?.toLowerCase()
const ref = data.getString('ref')
if (!channel || !ref) return
if (!channel || !reason || !ref) return
blocklist.push(
new Blocked({
channel,
reason,
ref
})
)

View file

@ -1,14 +1,17 @@
type BlockedProps = {
channel: string
reason: string
ref: string
}
export class Blocked {
channel: string
reason: string
ref: string
constructor({ ref, channel }: BlockedProps) {
constructor({ ref, reason, channel }: BlockedProps) {
this.channel = channel
this.reason = reason
this.ref = ref
}
}

View file

@ -4,5 +4,8 @@ export default {
channel: Joi.string()
.regex(/^[A-Za-z0-9]+\.[a-z]{2}$/)
.required(),
reason: Joi.string()
.valid(...['dmca', 'nsfw'])
.required(),
ref: Joi.string().uri().required()
}

View file

@ -1 +1 @@
[{"channel":"AnimalPlanetAfrica.za","ref":"https://github.com/iptv-org/iptv/issues/1831"},{"channel":"BeijingSatelliteTV.cn","ref":"https://github.com/iptv-org/iptv/issues/1831"}]
[{"channel":"AnimalPlanetAfrica.za","reason":"dmca","ref":"https://github.com/iptv-org/iptv/issues/1831"},{"channel":"BeijingSatelliteTV.cn","reason":"dmca","ref":"https://github.com/iptv-org/iptv/issues/1831"}]

View file

@ -1,3 +1,3 @@
channel,ref
beINMoviesTurk.tr,https://github.com/iptv-org/iptv/issues/1831
HGTVHungary.hu,https://github.com/iptv-org/iptv/issues/1831
channel,reason,ref
beINMoviesTurk.tr,dmca,https://github.com/iptv-org/iptv/issues/1831
HGTVHungary.hu,nsfw,https://github.com/iptv-org/iptv/issues/1831
1 channel reason ref
2 beINMoviesTurk.tr dmca https://github.com/iptv-org/iptv/issues/1831
3 HGTVHungary.hu nsfw https://github.com/iptv-org/iptv/issues/1831

View file

@ -1,3 +1,3 @@
channel,ref
AnimalPlanetAfrica.za,https://github.com/iptv-org/iptv/issues/1831
BeijingSatelliteTV.cn,https://github.com/iptv-org/iptv/issues/1831
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
1 channel reason ref
2 AnimalPlanetAfrica.za dmca https://github.com/iptv-org/iptv/issues/1831
3 BeijingSatelliteTV.cn dmca https://github.com/iptv-org/iptv/issues/1831

View file

@ -61,7 +61,7 @@ module.exports = [
closed_at: null,
author_association: 'CONTRIBUTOR',
active_lock_reason: null,
body: '### Channel ID\n\nHGTVHungary.hu\n\n### Reference\n\nhttps://github.com/iptv-org/iptv/issues/1831\n\n### Notes (optional)\n\n_No response_',
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,

View file

@ -1,3 +1,3 @@
channel,ref
002RadioTV.do,eee
002RadioTV.do,eee
channel,reason,ref
002RadioTV.do,dmca,eee
002RadioTV.do,dmca,eee
1 channel reason ref
2 002RadioTV.do dmca eee
3 002RadioTV.do dmca eee

View file

@ -1,2 +1,2 @@
channel,ref
aaa.us,https://github.com/iptv-org/iptv/issues/1831
channel,reason,ref
aaa.us,dmca,https://github.com/iptv-org/iptv/issues/1831
1 channel reason ref
2 aaa.us dmca https://github.com/iptv-org/iptv/issues/1831