Commit e450ad6a66

e450ad6a66fbaacd218a1a8271e74dadbcc81cae

parent: 7bd09cab35

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-10-25 16:59 UTC

type

Layout: unified · split

docs/.vitepress/theme/components/extrepo/helpers.ts +7 −1
@@ -79,7 +79,13 @@ const CONTENT_TYPE_LABELS: Record<string, string> = {
7979 'custom-source': 'Custom Source',
8080 'onlinestream-provider': 'Online Streaming',
8181 'manga-provider': 'Manga Provider',
82 'anime-torrent-provider': 'Anime Torrent'
82 'anime-torrent-provider': 'Anime Torrent',
83 movie: 'Movie',
84 series: 'Series',
85 anime: 'Anime',
86 tv: 'TV',
87 channel: 'Channel',
88 other: 'Other'
8389}
8490
8591export function contentTypeLabel(type: string): string {
docs/.vitepress/theme/components/extrepo/types.ts +1
@@ -25,6 +25,7 @@ export interface RepoSite {
2525 url: string
2626 rating: Rating
2727 contentType?: string
28 contentTypes?: string[]
2829 isBroken?: boolean
2930 installUrl?: string
3031 author?: string
docs/.vitepress/theme/components/extrepo/useRepoFilter.ts +8 −1
@@ -50,6 +50,11 @@ export function useRepoFilter(
5050 let hasBroken = false
5151 for (const site of allSites.value) {
5252 if (site.contentType) contentTypes.add(site.contentType)
53 if (site.contentTypes) {
54 for (const type of site.contentTypes) {
55 if (type) contentTypes.add(type)
56 }
57 }
5358 if (site.rating !== 'safe') hasRatings = true
5459 if (site.rating === 'mixed') hasMixed = true
5560 if (site.rating === 'suggestive') hasSuggestive = true
@@ -88,7 +93,9 @@ export function useRepoFilter(
8893 if (q && !site.hay.includes(q)) return false
8994 if (lang && site.lang !== lang) return false
9095 if (rating !== 'all' && site.rating !== rating) return false
91 if (ctype && site.contentType !== ctype) return false
96 if (ctype && site.contentType !== ctype) {
97 if (!site.contentTypes?.includes(ctype)) return false
98 }
9299 return true
93100 })
94101 return dedupeSites(filtered)
docs/ext/extensionRepos/parsers.ts +4
@@ -217,6 +217,7 @@ interface StremioAddon {
217217 icon?: string | null
218218 manifestUrl: string
219219 configureUrl?: string | null
220 types?: string[] | null
220221 nsfw?: boolean
221222}
222223
@@ -612,6 +613,9 @@ function toRepoDataStremio(index: StremioCollection): RepoSite[] {
612613 icon: addon.icon ?? '',
613614 url: '',
614615 rating: addon.nsfw ? 'nsfw' : 'safe',
616 contentTypes: addon.types?.length
617 ? [...new Set(addon.types.filter(Boolean))]
618 : undefined,
615619 installUrl: addon.manifestUrl,
616620 copyUrl: addon.manifestUrl,
617621 configureUrl: addon.configureUrl ?? undefined