Merge pull request #16282 from iptv-org/patch-2025.02.1

Patch 2025.02.1
This commit is contained in:
Aleksandr Statciuk 2025-02-25 09:47:52 +03:00 committed by GitHub
commit a951edc61d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 1163 additions and 1143 deletions

View file

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

View file

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

File diff suppressed because it is too large Load diff

View file

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

View file

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

View file

@ -4,5 +4,8 @@ export default {
channel: Joi.string() channel: Joi.string()
.regex(/^[A-Za-z0-9]+\.[a-z]{2}$/) .regex(/^[A-Za-z0-9]+\.[a-z]{2}$/)
.required(), .required(),
reason: Joi.string()
.valid(...['dmca', 'nsfw'])
.required(),
ref: Joi.string().uri().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 channel,reason,ref
beINMoviesTurk.tr,https://github.com/iptv-org/iptv/issues/1831 beINMoviesTurk.tr,dmca,https://github.com/iptv-org/iptv/issues/1831
HGTVHungary.hu,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 channel,reason,ref
AnimalPlanetAfrica.za,https://github.com/iptv-org/iptv/issues/1831 AnimalPlanetAfrica.za,dmca,https://github.com/iptv-org/iptv/issues/1831
BeijingSatelliteTV.cn,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, closed_at: null,
author_association: 'CONTRIBUTOR', author_association: 'CONTRIBUTOR',
active_lock_reason: null, 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: { reactions: {
url: 'https://api.github.com/repos/iptv-org/database/issues/5897/reactions', url: 'https://api.github.com/repos/iptv-org/database/issues/5897/reactions',
total_count: 0, total_count: 0,

View file

@ -1,3 +1,3 @@
channel,ref channel,reason,ref
002RadioTV.do,eee 002RadioTV.do,dmca,eee
002RadioTV.do,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 channel,reason,ref
aaa.us,https://github.com/iptv-org/iptv/issues/1831 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