Commit 2294f2e856
2294f2e856e08b5b269083a88bb2d17f26169947
parent: 3fc57243bf
Unsigned
Duck <57977673+woducku@users.noreply.github.com> · 2026-10-15 01:11 UTC
legado
Layout: unified · split
docs/.vitepress/theme/components/extrepo/install.ts
−1
| @@ -33,7 +33,6 @@ const INSTALL_URL_BUILDERS: Record< |
| 33 | 33 | cloudstreamrepo: repo => |
| 34 | 34 | `cloudstreamrepo://${repo.indexUrl.replace(/^https?:\/\//, '')}`, |
| 35 | 35 | hayase: repo => `hayase://extensions/install?url=${repo.indexUrl}`, |
| 36 | | legado: repo => `legado://import/bookSource?src=${repo.indexUrl}`, |
| 37 | 36 | lnreader: repo => `lnreader://repo/add?url=${repo.indexUrl}` |
| 38 | 37 | } |
| 39 | 38 | |
docs/ext/extensionRepos/legado.data.ts
deleted
−10
| @@ -1,10 +0,0 @@ |
| 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('legado') |
| 9 | | } |
| 10 | | } |
docs/ext/extensionRepos/parsers.ts
+1 −25
| @@ -118,12 +118,6 @@ interface HayaseExtension { |
| 118 | 118 | languages?: string[] |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | | interface LegadoBookSource { |
| 122 | | bookSourceName: string |
| 123 | | bookSourceUrl: string |
| 124 | | bookSourceGroup?: string |
| 125 | | } |
| 126 | | |
| 127 | 121 | interface LNReaderPlugin { |
| 128 | 122 | name: string |
| 129 | 123 | lang: string |
| @@ -535,22 +529,6 @@ function toRepoDataHayase(extensions: HayaseExtension[]): RepoSite[] { |
| 535 | 529 | return sites |
| 536 | 530 | } |
| 537 | 531 | |
| 538 | | function toRepoDataLegado(sources: LegadoBookSource[]): RepoSite[] { |
| 539 | | const seen = new Set<string>() |
| 540 | | const sites: RepoSite[] = [] |
| 541 | | for (const source of sources) { |
| 542 | | const lang = normalizeLang(source.bookSourceGroup ?? 'all') |
| 543 | | addSite(seen, `${source.bookSourceName}::${lang}`, sites, { |
| 544 | | name: source.bookSourceName, |
| 545 | | lang, |
| 546 | | icon: '', |
| 547 | | url: source.bookSourceUrl, |
| 548 | | rating: 'safe' |
| 549 | | }) |
| 550 | | } |
| 551 | | return sites |
| 552 | | } |
| 553 | | |
| 554 | 532 | function toRepoDataMangayomi(sources: MangayomiSource[]): RepoSite[] { |
| 555 | 533 | const seen = new Set<string>() |
| 556 | 534 | const sites: RepoSite[] = [] |
| @@ -811,9 +789,7 @@ async function toRepoData( |
| 811 | 789 | |
| 812 | 790 | if (Array.isArray(json)) { |
| 813 | 791 | const first = json[0] as Record<string, unknown> | undefined |
| 814 | | if (first && 'bookSourceUrl' in first) { |
| 815 | | sites = toRepoDataLegado(json as LegadoBookSource[]) |
| 816 | | } else if (first && 'manifestVersion' in first) { |
| 792 | if (first && 'manifestVersion' in first) { |
| 817 | 793 | sites = toRepoDataHayase(json as HayaseExtension[]) |
| 818 | 794 | } else if (first && 'iconUrl' in first && 'site' in first) { |
| 819 | 795 | sites = toRepoDataLNReader(json as LNReaderPlugin[]) |
docs/ext/index.md
+1 −1
| @@ -36,7 +36,7 @@ og: |
| 36 | 36 | - Cloudstream : (Cloudstream), (Aniyomi); |
| 37 | 37 | - Dantotsu : (Mihon), (Aniyomi), (LNreader); |
| 38 | 38 | - Futon : (Kotatsu), (Mihon); |
| 39 | | - IReader : (IReader), (LNreader), (Legado); |
| 39 | - IReader : (IReader), (LNreader); |
| 40 | 40 | - Mangayomi : (Mihon), (Aniyomi), (Mangayomi); |
| 41 | 41 | - Tsundoku : (Mihon), (LNReader), (Tsundoku), (Shosetsu); |
| 42 | 42 | - Usagi : (Kotatsu), (Mihon), (LNreader); |
docs/ext/misc.md
−25
| @@ -134,31 +134,6 @@ og: |
| 134 | 134 | i am so tired of this shit lol. every fork works differently. just use mihon or its forks. |
| 135 | 135 | ::: |
| 136 | 136 | |
| 137 | | ## Legado |
| 138 | | |
| 139 | | ::: extrepo {scheme=legado} |
| 140 | | |
| 141 | | == rektpartyaftermath |
| 142 | | - url: https://github.com/rektpartyaftermath/Legado-booksource-collection |
| 143 | | - raw: https://raw.githubusercontent.com/rektpartyaftermath/Legado-booksource-collection/main/AllBooksource.json |
| 144 | | |
| 145 | | == ZWolken's Japanese light novels |
| 146 | | - url: https://github.com/ZWolken/Light-Novel-Yuedu-Source |
| 147 | | - raw: https://github.com/ZWolken/Light-Novel-Yuedu-Source/releases/latest/download/Japan_based_bookSource.json |
| 148 | | |
| 149 | | == ZWolken's Chinese light novels |
| 150 | | - url: https://github.com/ZWolken/Light-Novel-Yuedu-Source |
| 151 | | - raw: https://github.com/ZWolken/Light-Novel-Yuedu-Source/releases/latest/download/China_based_bookSource.json |
| 152 | | |
| 153 | | == ZWolken's Japanese raw light novels |
| 154 | | - url: https://github.com/ZWolken/Light-Novel-Yuedu-Source |
| 155 | | - raw: https://github.com/ZWolken/Light-Novel-Yuedu-Source/releases/latest/download/Japanese_original_bookSource.json |
| 156 | | |
| 157 | | == ZWolken all sources |
| 158 | | - url: https://github.com/ZWolken/Light-Novel-Yuedu-Source |
| 159 | | - raw: https://github.com/ZWolken/Light-Novel-Yuedu-Source/releases/latest/download/All_bookSource.json |
| 160 | | ::: |
| 161 | | |
| 162 | 137 | ## LNReader |
| 163 | 138 | |
| 164 | 139 | ::: extrepo {scheme=lnreader} |
docs/nonen.md
−1
| @@ -167,7 +167,6 @@ Most apps in [**software**](/software) supports multilingual sources |
| 167 | 167 | | ^^ | [MangaReader](https://github.com/youniaogu/MangaReader) | |
| 168 | 168 | | ^^ | [Venra](https://github.com/venera-app/venera) | |
| 169 | 169 | | **Novels** | [Hikari Novel](https://github.com/15dd/wenku8reader) | |
| 170 | | | ^^ | [Legado](https://github.com/gedoor/legado) | |
| 171 | 170 | | ^^ | [Legado MD3](https://github.com/HapeLee/legado-with-MD3) | |
| 172 | 171 | | ^^ | [LightNovelReader](https://github.com/dmzz-yyhyy/LightNovelReader) | |
| 173 | 172 | | **Tracker** | [Bangumi](https://github.com/czy0729/Bangumi) | |