Commit 4572309927
Unsigned
Layout: unified · split
docs/.vitepress/configs/constants.ts +49 −40
| @@ -304,6 +304,14 @@ export const homeCards: HomeCard[] = [ | ||
| 304 | 304 | link: '/ext/stremio', |
| 305 | 305 | section: 'Extensions' |
| 306 | 306 | }, |
| 307 | { | |
| 308 | id: 'ext-nuvio', | |
| 309 | icon: ':lucide-puzzle:', | |
| 310 | title: 'Nuvio', | |
| 311 | details: 'Movies & Series', | |
| 312 | link: '/ext/nuvio', | |
| 313 | section: 'Extensions' | |
| 314 | }, | |
| 307 | 315 | { |
| 308 | 316 | id: 'glossary-general', |
| 309 | 317 | icon: ':lucide-book-open:', |
| @@ -340,7 +348,7 @@ export const homeCards: HomeCard[] = [ | ||
| 340 | 348 | id: 'glossary-nsfw', |
| 341 | 349 | icon: ':lucide-book-open:', |
| 342 | 350 | title: 'NSFW Glossary', |
| 343 | details: 'Things Jesus wouldn\'t want you to know', | |
| 351 | details: "Things Jesus wouldn't want you to know", | |
| 344 | 352 | link: '/glossary/nsfw', |
| 345 | 353 | section: 'Glossary' |
| 346 | 354 | }, |
| @@ -565,48 +573,49 @@ export const sidebar: DefaultTheme.Sidebar = [ | ||
| 565 | 573 | text: '<span class="i-twemoji-comet"></span> VTuber', |
| 566 | 574 | link: '/vtuber' |
| 567 | 575 | }, |
| 568 | { | |
| 576 | { | |
| 569 | 577 | text: |
| 570 | 578 | '<span class="mr-2 w-4 h-4 bg-cover i-lucide:puzzle"></span> Extensions', |
| 571 | 579 | collapsed: true, |
| 572 | 580 | link: '/ext', |
| 573 | 581 | items: [ |
| 574 | { | |
| 575 | text: 'Android', | |
| 576 | collapsed: true, | |
| 577 | items: [ | |
| 578 | { text: 'Mihon', link: '/ext/mihon' }, | |
| 579 | { text: 'Aniyomi', link: '/ext/aniyomi' }, | |
| 580 | { text: 'Cloudstream', link: '/ext/cloudstream' }, | |
| 581 | { text: 'Echo', link: '/ext/echo' }, | |
| 582 | { text: 'IReader', link: '/ext/ireader' }, | |
| 583 | { text: 'Kotatsu', link: '/ext/kotatsu' }, | |
| 584 | { text: 'LNReader', link: '/ext/lnreader' }, | |
| 585 | { text: 'Shosetsu', link: '/ext/shosetsu' }, | |
| 586 | { text: 'Tsundoku', link: '/ext/tsundoku' } | |
| 587 | ] | |
| 588 | }, | |
| 589 | { | |
| 590 | text: 'iOS', | |
| 591 | collapsed: true, | |
| 592 | items: [ | |
| 593 | { text: 'Aidoku', link: '/ext/aidoku' }, | |
| 594 | { text: 'Mana', link: '/ext/mana' }, | |
| 595 | { text: 'Paperback', link: '/ext/paperback' }, | |
| 596 | { text: 'Suwatte', link: '/ext/suwatte' }, | |
| 597 | { text: 'Sora', link: '/ext/sora' } | |
| 598 | ] | |
| 599 | }, | |
| 600 | { | |
| 601 | text: 'Multi', | |
| 602 | collapsed: true, | |
| 603 | items: [ | |
| 604 | { text: 'Hayase', link: '/ext/hayase' }, | |
| 605 | { text: 'Mangayomi', link: '/ext/mangayomi' }, | |
| 606 | { text: 'Seanime', link: '/ext/seanime' }, | |
| 607 | { text: 'Stremio', link: '/ext/stremio' } | |
| 608 | ] | |
| 609 | } | |
| 582 | { | |
| 583 | text: 'Android', | |
| 584 | collapsed: true, | |
| 585 | items: [ | |
| 586 | { text: 'Mihon', link: '/ext/mihon' }, | |
| 587 | { text: 'Aniyomi', link: '/ext/aniyomi' }, | |
| 588 | { text: 'Cloudstream', link: '/ext/cloudstream' }, | |
| 589 | { text: 'Echo', link: '/ext/echo' }, | |
| 590 | { text: 'IReader', link: '/ext/ireader' }, | |
| 591 | { text: 'Kotatsu', link: '/ext/kotatsu' }, | |
| 592 | { text: 'LNReader', link: '/ext/lnreader' }, | |
| 593 | { text: 'Shosetsu', link: '/ext/shosetsu' }, | |
| 594 | { text: 'Tsundoku', link: '/ext/tsundoku' } | |
| 595 | ] | |
| 596 | }, | |
| 597 | { | |
| 598 | text: 'iOS', | |
| 599 | collapsed: true, | |
| 600 | items: [ | |
| 601 | { text: 'Aidoku', link: '/ext/aidoku' }, | |
| 602 | { text: 'Mana', link: '/ext/mana' }, | |
| 603 | { text: 'Paperback', link: '/ext/paperback' }, | |
| 604 | { text: 'Suwatte', link: '/ext/suwatte' }, | |
| 605 | { text: 'Sora', link: '/ext/sora' } | |
| 606 | ] | |
| 607 | }, | |
| 608 | { | |
| 609 | text: 'Multi', | |
| 610 | collapsed: true, | |
| 611 | items: [ | |
| 612 | { text: 'Hayase', link: '/ext/hayase' }, | |
| 613 | { text: 'Mangayomi', link: '/ext/mangayomi' }, | |
| 614 | { text: 'Seanime', link: '/ext/seanime' }, | |
| 615 | { text: 'Stremio', link: '/ext/stremio' }, | |
| 616 | { text: 'Nuvio', link: '/ext/nuvio' } | |
| 617 | ] | |
| 618 | } | |
| 610 | 619 | ] |
| 611 | 620 | }, |
| 612 | 621 | { |
| @@ -619,7 +628,7 @@ export const sidebar: DefaultTheme.Sidebar = [ | ||
| 619 | 628 | text: 'Anime', |
| 620 | 629 | collapsed: true, |
| 621 | 630 | items: [ |
| 622 | { text: 'Disc Ripping', link: '/guides/anime/discrip' }, | |
| 631 | { text: 'Disc Ripping', link: '/guides/anime/discrip' } | |
| 623 | 632 | ] |
| 624 | 633 | }, |
| 625 | 634 | { |
| @@ -679,7 +688,7 @@ export const sidebar: DefaultTheme.Sidebar = [ | ||
| 679 | 688 | { text: `Trackers`, link: '/torrenting/trackers' } |
| 680 | 689 | ] |
| 681 | 690 | }, |
| 682 | { | |
| 691 | { | |
| 683 | 692 | text: |
| 684 | 693 | '<span class="mr-2 w-4 h-4 bg-cover i-uil:letter-japanese-a"></span> Japan', |
| 685 | 694 | collapsed: true, |
docs/.vitepress/theme/components/extrepo/SiteCell.vue +3 −3
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <script setup lang="ts"> |
| 2 | 2 | import { computed } from 'vue' |
| 3 | import { langFlagClass, ratingIcon, ratingTitle } from './helpers' | |
| 3 | import { langFlagClass, langLabel, ratingIcon, ratingTitle } from './helpers' | |
| 4 | 4 | import { hasSiteCopyButton } from './install' |
| 5 | 5 | import LazyIcon from './LazyIcon.vue' |
| 6 | 6 | import type { RepoSite } from './types' |
| @@ -58,8 +58,8 @@ async function copyInstallUrl() { | ||
| 58 | 58 | v-if="scheme !== 'stremio'" |
| 59 | 59 | class="ext-site-lang" |
| 60 | 60 | :class="langFlagClass(site.lang)" |
| 61 | :aria-label="site.lang" | |
| 62 | @mouseenter="showTooltip($event, site.lang)" | |
| 61 | :aria-label="langLabel(site.lang)" | |
| 62 | @mouseenter="showTooltip($event, langLabel(site.lang))" | |
| 63 | 63 | @mouseleave="hideTooltip" |
| 64 | 64 | /> |
| 65 | 65 | </div> |
docs/.vitepress/theme/components/extrepo/install.ts +1 −1
| @@ -50,7 +50,7 @@ const INSTALL_URL_BUILDERS: Record< | ||
| 50 | 50 | const MANUAL_ONLY_SCHEMES = new Set(['manual', 'shosetsu']) |
| 51 | 51 | |
| 52 | 52 | // Schemes that keep the copy actions but never show an install link. |
| 53 | const NO_INSTALL_SCHEMES = new Set(['seanime']) | |
| 53 | const NO_INSTALL_SCHEMES = new Set(['seanime', 'nuvio']) | |
| 54 | 54 | |
| 55 | 55 | // Schemes with no install or copy action |
| 56 | 56 | const BROWSE_ONLY_SCHEMES = new Set(['kotatsu', 'sora', 'echo', 'stremio']) |
docs/.vitepress/theme/components/extrepo/types.ts +1
| @@ -21,6 +21,7 @@ export interface Repo { | ||
| 21 | 21 | export interface RepoSite { |
| 22 | 22 | name: string |
| 23 | 23 | lang: string |
| 24 | languages?: string[] | |
| 24 | 25 | icon: string |
| 25 | 26 | url: string |
| 26 | 27 | rating: Rating |
docs/.vitepress/theme/components/extrepo/useRepoFilter.ts +6 −1
| @@ -62,6 +62,9 @@ export function useRepoFilter( | ||
| 62 | 62 | if (typeof site.lang !== 'string') continue |
| 63 | 63 | if (site.lang.toLowerCase() === 'all') hasMultiLanguage = true |
| 64 | 64 | if (site.lang !== 'all') langs.add(site.lang) |
| 65 | for (const lang of site.languages ?? []) { | |
| 66 | if (lang && lang !== 'all') langs.add(lang) | |
| 67 | } | |
| 65 | 68 | } |
| 66 | 69 | return { |
| 67 | 70 | availableContentTypes: [...contentTypes].sort(), |
| @@ -91,7 +94,9 @@ export function useRepoFilter( | ||
| 91 | 94 | const filtered = allSites.value.filter((site) => { |
| 92 | 95 | if (site.isBroken && !showBroken) return false |
| 93 | 96 | if (q && !site.hay.includes(q)) return false |
| 94 | if (lang && site.lang !== lang) return false | |
| 97 | if (lang && site.lang !== lang && !site.languages?.includes(lang)) { | |
| 98 | return false | |
| 99 | } | |
| 95 | 100 | if (rating !== 'all' && site.rating !== rating) return false |
| 96 | 101 | if (ctype && site.contentType !== ctype) { |
| 97 | 102 | if (!site.contentTypes?.includes(ctype)) return false |
docs/ext/extensionRepos/nuvio.data.ts added +10
| @@ -0,0 +1,10 @@ | ||
| 1 | import { type ExtensionRepoData, loadScheme } from './shared' | |
| 2 | ||
| 3 | export declare const data: ExtensionRepoData | |
| 4 | ||
| 5 | export default { | |
| 6 | watch: ['../../**/*.md'], | |
| 7 | async load(): Promise<ExtensionRepoData> { | |
| 8 | return loadScheme('nuvio') | |
| 9 | } | |
| 10 | } | |
docs/ext/extensionRepos/parsers.ts +103 −1
| @@ -182,6 +182,23 @@ interface KotatsuIndex { | ||
| 182 | 182 | sites: KotatsuSite[] |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | interface NuvioScraper { | |
| 186 | name: string | |
| 187 | icon?: string | |
| 188 | logo?: string | |
| 189 | description?: string | |
| 190 | types?: string[] | |
| 191 | supportedTypes?: string[] | |
| 192 | language?: string[] | |
| 193 | contentLanguage?: string[] | |
| 194 | enabled?: boolean | |
| 195 | } | |
| 196 | ||
| 197 | interface NuvioManifest { | |
| 198 | name?: string | |
| 199 | scrapers?: NuvioScraper[] | |
| 200 | } | |
| 201 | ||
| 185 | 202 | interface SoraRepoIndexEntry { |
| 186 | 203 | name: string |
| 187 | 204 | source: string |
| @@ -404,7 +421,45 @@ const LANG_ALIASES: Record<string, string> = { | ||
| 404 | 421 | thai: 'th', |
| 405 | 422 | hindi: 'hi', |
| 406 | 423 | malay: 'ms', |
| 407 | serbian: 'sr' | |
| 424 | serbian: 'sr', | |
| 425 | hin: 'hi', | |
| 426 | tam: 'ta', | |
| 427 | tel: 'te', | |
| 428 | mal: 'ml', | |
| 429 | kan: 'kn', | |
| 430 | ben: 'bn', | |
| 431 | ita: 'it', | |
| 432 | jpn: 'ja', | |
| 433 | kor: 'ko', | |
| 434 | chi: 'zh', | |
| 435 | ch: 'zh', | |
| 436 | ger: 'de', | |
| 437 | deu: 'de', | |
| 438 | fra: 'fr', | |
| 439 | fre: 'fr', | |
| 440 | spa: 'es', | |
| 441 | por: 'pt', | |
| 442 | rus: 'ru', | |
| 443 | ara: 'ar', | |
| 444 | tur: 'tr', | |
| 445 | pol: 'pl', | |
| 446 | ukr: 'uk', | |
| 447 | vie: 'vi', | |
| 448 | tha: 'th', | |
| 449 | ind: 'id', | |
| 450 | may: 'ms', | |
| 451 | msa: 'ms', | |
| 452 | ba: 'bn', | |
| 453 | kr: 'ko', | |
| 454 | pe: 'fa', | |
| 455 | nld: 'nl', | |
| 456 | dut: 'nl', | |
| 457 | swe: 'sv', | |
| 458 | nor: 'no', | |
| 459 | dan: 'da', | |
| 460 | fin: 'fi', | |
| 461 | ell: 'el', | |
| 462 | heb: 'he' | |
| 408 | 463 | } |
| 409 | 464 | |
| 410 | 465 | const LANG_SUBSTRING_ALIASES: [RegExp, string][] = [ |
| @@ -739,6 +794,51 @@ function toRepoDataKotatsu(index: KotatsuIndex): RepoSite[] { | ||
| 739 | 794 | return sites |
| 740 | 795 | } |
| 741 | 796 | |
| 797 | function nuvioLangs(scraper: NuvioScraper): string[] { | |
| 798 | const raw = scraper.contentLanguage ?? scraper.language ?? [] | |
| 799 | return [ | |
| 800 | ...new Set( | |
| 801 | raw | |
| 802 | .filter(lang => typeof lang === 'string' && lang.trim() !== '') | |
| 803 | .map(lang => normalizeLang(lang)) | |
| 804 | ) | |
| 805 | ] | |
| 806 | } | |
| 807 | ||
| 808 | function toRepoDataNuvio(manifest: NuvioManifest): RepoSite[] { | |
| 809 | const seen = new Set<string>() | |
| 810 | const sites: RepoSite[] = [] | |
| 811 | for (const scraper of manifest.scrapers ?? []) { | |
| 812 | if (!scraper?.name || scraper.enabled === false) continue | |
| 813 | const languages = nuvioLangs(scraper) | |
| 814 | const lang = languages.length === 1 ? languages[0] : 'all' | |
| 815 | const types = [ | |
| 816 | ...new Set( | |
| 817 | (scraper.supportedTypes ?? scraper.types ?? []).filter( | |
| 818 | (type): type is string => typeof type === 'string' && type !== '' | |
| 819 | ) | |
| 820 | ) | |
| 821 | ] | |
| 822 | const icon = scraper.logo ?? scraper.icon ?? '' | |
| 823 | addSite(seen, `${scraper.name}::${lang}::${icon}`, sites, { | |
| 824 | name: scraper.name, | |
| 825 | lang, | |
| 826 | languages: languages.length ? languages : undefined, | |
| 827 | icon, | |
| 828 | url: '', | |
| 829 | rating: 'safe', | |
| 830 | contentType: types[0], | |
| 831 | contentTypes: types.length ? types : undefined | |
| 832 | }) | |
| 833 | } | |
| 834 | return sortSites(sites) | |
| 835 | } | |
| 836 | ||
| 837 | function isNuvioManifest(json: unknown): json is NuvioManifest { | |
| 838 | return !!json && typeof json === 'object' && !Array.isArray(json) && | |
| 839 | Array.isArray((json as NuvioManifest).scrapers) | |
| 840 | } | |
| 841 | ||
| 742 | 842 | function isEchoExtensionList(json: unknown): json is EchoExtension[] { |
| 743 | 843 | if (!Array.isArray(json) || json.length === 0) return false |
| 744 | 844 | const first = json[0] as Record<string, unknown> |
| @@ -1083,6 +1183,8 @@ async function toRepoData( | ||
| 1083 | 1183 | suwatteV6 = (json as SuwatteCatalogIndex).catalogVersion === undefined |
| 1084 | 1184 | } else if (Array.isArray((json as KotatsuIndex).sites)) { |
| 1085 | 1185 | sites = toRepoDataKotatsu(json as KotatsuIndex) |
| 1186 | } else if (isNuvioManifest(json)) { | |
| 1187 | sites = toRepoDataNuvio(json) | |
| 1086 | 1188 | } else { |
| 1087 | 1189 | sites = toRepoDataPaperback(iconBase, json as PaperbackIndex) |
| 1088 | 1190 | } |
docs/ext/index.md +3
| @@ -85,4 +85,7 @@ og: | ||
| 85 | 85 | <Card title="Stremio" href="/ext/stremio"> |
| 86 | 86 | Anime, Live Action & others |
| 87 | 87 | </Card> |
| 88 | <Card title="Nuvio" href="/ext/nuvio"> | |
| 89 | Movies, Series & Live Action | |
| 90 | </Card> | |
| 88 | 91 | </Deck> |
docs/ext/nuvio.md added +72
| @@ -0,0 +1,72 @@ | ||
| 1 | --- | |
| 2 | title: Nuvio Extension Repos | |
| 3 | customDescription: Provider manifests for Nuvio | |
| 4 | feedback: no | |
| 5 | og: | |
| 6 | image: /embed/extension.png | |
| 7 | --- | |
| 8 | # Nuvio | |
| 9 | ||
| 10 | ::: extrepo {scheme=nuvio} | |
| 11 | ||
| 12 | == Adrianjael | |
| 13 | - url: https://github.com/adrianjael/pluggin-latino | |
| 14 | - raw: https://raw.githubusercontent.com/adrianjael/pluggin-latino/refs/heads/main/manifest.json | |
| 15 | ||
| 16 | == CENSORED's Plugin | |
| 17 | - url: https://codeberg.org/CENSORED/Nuvio-Plugin | |
| 18 | - raw: https://codeberg.org/CENSORED/Nuvio-Plugin/raw/branch/main/manifest.json | |
| 19 | ||
| 20 | == D3adlyRocket | |
| 21 | - url: https://github.com/D3adlyRocket/All-in-One-Nuvio | |
| 22 | - raw: https://raw.githubusercontent.com/D3adlyRocket/All-in-One-Nuvio/refs/heads/main/manifest.json | |
| 23 | ||
| 24 | == Eclipsia | |
| 25 | - url: https://codeberg.org/eclipsia/nuvio-plugin | |
| 26 | - raw: https://codeberg.org/eclipsia/nuvio-plugin/raw/branch/main/manifest.json | |
| 27 | ||
| 28 | == Gowaru | |
| 29 | - url: https://github.com/Gowaru/gowaru-nuvio-providers | |
| 30 | - raw: https://raw.githubusercontent.com/Gowaru/gowaru-nuvio-providers/refs/heads/main/manifest.json | |
| 31 | ||
| 32 | == Kabir | |
| 33 | - url: https://github.com/PirateZoro9/asura-providers | |
| 34 | - raw: https://raw.githubusercontent.com/PirateZoro9/asura-providers/refs/heads/main/manifest.json | |
| 35 | ||
| 36 | == KennethJYS | |
| 37 | - url: https://github.com/KennethJYS/Nuvio-Providers-Latino | |
| 38 | - raw: https://raw.githubusercontent.com/KennethJYS/Nuvio-Providers-Latino/refs/heads/main/manifest.json | |
| 39 | ||
| 40 | == Michat88 | |
| 41 | - url: https://github.com/michat88/nuvio-providers | |
| 42 | - raw: https://raw.githubusercontent.com/michat88/nuvio-providers/refs/heads/main/manifest.json | |
| 43 | ||
| 44 | == MoonCrown | |
| 45 | - url: https://github.com/mooncrown04/nuviotr | |
| 46 | - raw: https://raw.githubusercontent.com/mooncrown04/nuviotr/refs/heads/main/manifest.json | |
| 47 | ||
| 48 | == Phisher | |
| 49 | - url: https://github.com/phisher98/nuvio-providers | |
| 50 | - raw: https://raw.githubusercontent.com/phisher98/nuvio-providers/refs/heads/main/manifest.json | |
| 51 | ||
| 52 | == Saimuelbr | |
| 53 | - url: https://github.com/saimuelbr/saimuel-nuvio-repo | |
| 54 | - raw: https://raw.githubusercontent.com/saimuelbr/saimuel-nuvio-repo/refs/heads/main/manifest.json | |
| 55 | ||
| 56 | == Spidey | |
| 57 | - url: https://github.com/Abinanthankv/NuvioRepo | |
| 58 | - raw: https://raw.githubusercontent.com/Abinanthankv/NuvioRepo/refs/heads/master/manifest.json | |
| 59 | ||
| 60 | == Turkish Nuvio | |
| 61 | - url: https://github.com/fmustafayaman/turkish-nuvio | |
| 62 | - raw: https://raw.githubusercontent.com/fmustafayaman/turkish-nuvio/main/manifest.json | |
| 63 | ||
| 64 | == Wekmed | |
| 65 | - url: https://github.com/Wekmed/nuvio | |
| 66 | - raw: https://raw.githubusercontent.com/Wekmed/nuvio/refs/heads/main/manifest.json | |
| 67 | ||
| 68 | == Yoru | |
| 69 | - url: https://github.com/yoruix/nuvio-providers | |
| 70 | - raw: https://raw.githubusercontent.com/yoruix/nuvio-providers/refs/heads/main/manifest.json | |
| 71 | ||
| 72 | ::: | |