chore/api-prox: simplify example of custom episodes

This commit is contained in:
Kentai Radiquum 2025-07-08 13:55:40 +05:00
parent 901e51a9da
commit dd4772c5cf
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 12 additions and 51 deletions

View file

@ -1,4 +1,5 @@
{ {
"$schema": "https://gist.githubusercontent.com/Radiquum/7f33c09be293233b831c841b69f24608/raw/anix-api-prox-custom-episode-schema.json",
"comment": [ "comment": [
"пример для добавления и изменения озвучек, источников и эпизодов", "пример для добавления и изменения озвучек, источников и эпизодов",
"для аниме Initial D - First Stage, ID: 841", "для аниме Initial D - First Stage, ID: 841",
@ -7,32 +8,15 @@
"types": [ "types": [
{ {
"id": 1, "id": 1,
"name": "NyaniDUB", "name": "NyaniDUB (Заменено с AniDub)",
"icon": "https://wsrv.nl/?url=https://s3.tebi.io/wahs.wah.su/red_panda/0782.%20gfCXa9ZzhvY.jpg",
"sources": [ "sources": [
{ {
"id": 1, "id": 1,
"name": "Sibnet", "name": "Sibnet",
"episodes": [ "episodes": [
{ {
"position": 1, "position": 0,
"name": "первая серия", "name": "Первая серия"
"url": "https://aniqit.com/seria/250857/96e2df7a21302ef9556c7cbb427e314d/720p",
"iframe": false,
"is_filler": false
}
]
},
{
"id": 998,
"name": "Custom Source",
"episodes": [
{
"position": 1,
"name": "своя серия",
"url": "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"iframe": true,
"is_filler": true
} }
] ]
} }
@ -40,48 +24,25 @@
}, },
{ {
"id": 999, "id": 999,
"name": "Custom Voiceover", "name": "By Blender Foundation",
"icon": "https://s3.anixstatic.com/voiceovers/anidub.jpg", "icon": "https://download.blender.org/branding/community/blender_community_badge_white.png",
"episodes_count": 2, "episodes_count": 2,
"sources": [ "sources": [
{ {
"id": 998, "id": 998,
"name": "Custom Source", "name": "Public Test Videos",
"episodes_count": 2, "episodes_count": 2,
"episodes": [ "episodes": [
{ {
"position": 1, "position": 1,
"name": "mewmewmew", "name": "Big Buck Bunny",
"url": "https://aniqit.com/seria/250857/96e2df7a21302ef9556c7cbb427e314d/720p", "url": "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"iframe": true,
"is_filler": true "is_filler": true
}, },
{ {
"position": 2, "position": 2,
"name": "своя серия", "name": "Elephant Dream",
"url": "https://aniqit.com/seria/250857/96e2df7a21302ef9556c7cbb427e314d/720p", "url": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",
"iframe": true,
"is_filler": true
}
]
},
{
"id": 997,
"name": "Custom Source 2",
"episodes_count": 2,
"episodes": [
{
"position": 1,
"name": "mewmewmew",
"url": "https://aniqit.com/seria/250857/96e2df7a21302ef9556c7cbb427e314d/720p",
"iframe": true,
"is_filler": true
},
{
"position": 2,
"name": "своя серия",
"url": "https://aniqit.com/seria/250857/96e2df7a21302ef9556c7cbb427e314d/720p",
"iframe": true,
"is_filler": true "is_filler": true
} }
] ]

View file

@ -276,7 +276,7 @@ export async function get(data: any, url: URL) {
source: data.episodes.length > 0 ? 3 : source, source: data.episodes.length > 0 ? 3 : source,
name: episode.name || "Неизвестная Серия", name: episode.name || "Неизвестная Серия",
url: episode.url || "", url: episode.url || "",
iframe: episode.iframe || false, iframe: episode.iframe || true,
addedDate: 0, addedDate: 0,
is_filler: episode.is_filler || false, is_filler: episode.is_filler || false,
is_watched: false, is_watched: false,