Introducing a new way to review your PRs.

Read the announcement

keiyoushi / extensions-source

Source code of extensions in https://github.com/keiyoushi/extensions

View on GitHub

13 documents · Updated Nov 19, 2026

docs / other-language-extensions

Other language extensions

Overview

This area is the collection of locale-specific Tachiyomi/Keiyoushi extension modules under src/<locale>/<source>/ for non-English, non-Chinese languages: src/ar/**, src/bg/**, src/ca/**, src/cs/**, src/de/**, src/es/**, src/fr/**, src/id/**, src/it/**, src/ja/**, src/ko/**, src/pt/**, src/ru/**, src/th/**, src/tr/**, src/uk/**, and src/vi/**. Each source module is an Android/Kotlin extension with its own build.gradle.kts, icon resources under res/mipmap-*, and Kotlin code under src/eu/kanade/tachiyomi/extension/<locale>/<source>/.

Every module declares the Keiyoushi extension plugin in its module build.gradle.kts, then registers one or more source { ... } blocks with lang, baseUrl, and sometimes id, name, versionId, or custom(...) base URLs. The Kotlin entrypoint is marked with @Source and usually either extends a shared multisrc implementation or implements KeiSource directly. Examples of the two ends of the spectrum are src/…/YuriOnline.kt, which only customizes Madara chapter date parsing and chapterMode, and src/…/ZetTruyen.kt, which implements popular/latest/search, detail parsing, paginated chapter API calls, and page extraction directly.

State is mostly remote-source state: extensions read listing/detail/chapter/page data from the configured website or API and return Tachiyomi models (SManga, SChapter, Page, MangasPage, SMangaUpdate). Some modules keep local preferences or caches for site behavior: src/…/Japscan.kt uses ConfigurableSource preferences to hide spoiler/raw chapters and serves captured reader images from a cache-host interceptor; src/…/Procomic.kt stores preferences, token/session state, mirror-host information, and reader image caches while solving Turnstile and media delivery issues. External systems are the source sites themselves, their JSON/XHR APIs, Cloudflare or custom anti-bot challenges, and shared extension libraries such as multisrc themes and optional lib:cronet / lib:imagedecoder dependencies.

Language directory organization

The path prefix is the routing key for locale ownership. Use src/…/build.gradle.kts to identify the displayed source name, locale, base URL, package overrides, content warning, lib version, theme, dependencies, and deeplink patterns. Use src/<locale>/<source>/src/eu/kanade/tachiyomi/extension/<locale>/<source>/... for the source implementation. Resources such as launcher icons live beside the module at src/…/ic_launcher.png, and source-specific JavaScript/assets can appear under module assets, for example src/…/read_auth_token.js.

Smaller locales are often almost entirely multisrc wrappers. src/…/build.gradle.kts declares theme = "mmrcms", and src/…/Utsukushii.kt only overrides the popular listing URL. src/…/build.gradle.kts declares theme = "fansubscat", and src/…/FansubsCat.kt only overrides isHentaiSite. Larger locales (src/es/**, src/ja/**, src/pt/**, src/vi/**) contain many single-site modules, some multisrc wrappers and some full custom clients.

A module can expose multiple sources from one implementation. src/…/build.gradle.kts has three source { ... } blocks for Naver Webtoon, Best Challenge, and Challenge, all with lang = "ko" and the same base URL. src/…/NaverComic.kt branches on the generated source name to choose mType (webtoon, bestChallenge, or challenge) and then routes popular/latest/search/detail/chapter requests to the matching Naver API or mobile HTML pages.

Common implementation and template patterns

Most modules follow one of two patterns:

  • Multisrc wrapper modules. The Gradle theme points to a shared implementation and the Kotlin file extends that class with local overrides. Examples include src/…/YuriOnline.kt extending Madara, src/…/Zenon.kt extending GigaViewer, src/…/Mangaworld.kt extending MangaWorld, src/…/ToomTamManga.kt extending MangaThemesia, src/…/AesirScans.kt extending ZeistManga, and src/…/ReadManga.kt extending GroupLe. These modules usually customize selectors, status strings, category IDs, date formats, chapter modes, or route handling while relying on the shared source for catalog/detail/page flow.
  • Custom KeiSource modules. These implement the full source contract directly: getPopularManga, getLatestUpdates, getSearchMangaList, getMangaByUrl, fetchMangaUpdate, and getPageList. src/…/ZetTruyen.kt builds /tim-kiem-nang-cao queries from Filters.kt, fetches chapter JSON from /api/comics/{slug}/chapters, parses ChapterListResponse from Dto.kt, and maps reader images from HTML. src/…/MangaBoomers.kt posts JSON bodies to /api/* endpoints, fetches dynamic filter data via fetchFilterData, stores chapter manga IDs in SChapter.memo, and returns image URLs from pagedata. src/…/MangaTube.kt is API-first and uses ChallengeInterceptor.kt to bootstrap cookies and solve the site's custom _challange gate before hitting /api/* endpoints.

Filters are either static Kotlin lists or remote options cached through the source API. Static filters are common when a site's query vocabulary is stable, as in src/…/Filters.kt, which maps Vietnamese UI labels to query parts for sort/status/type/chapter range and genre IDs. Dynamic filters appear where the site exposes changing tags/translators/categories: src/…/MangaBoomers.kt fetches optionsForSearch, and src/…/Mangarama.kt scrapes the manga archive form into FiltersData before building Ukrainian filter controls.

Date parsing and locale text are source-local. src/…/YuriOnline.kt uses DateTimeFormatter.ofPattern("MMM dd, yyyy", Locale("es")); src/…/ZetTruyen.kt parses API timestamps in Asia/Ho_Chi_Minh; src/…/Komiku.kt parses Indonesian relative dates like detik, menit, hari, and tahun; src/…/NaverComic.kt parses yy.M.d in Asia/Seoul.

Network customization is source-specific and should be treated as part of the implementation, not boilerplate. src/…/Komiku.kt sets Indonesian Accept-Language, routes catalog calls to https://api.komiku.org, and rewrites headers through an interceptor. src/…/ChallengeInterceptor.kt checks for required cookies and posts challenge headers after a delay. src/…/Japscan.kt rate-limits requests and intercepts sentinel cache-host image URLs. src/…/build.gradle.kts adds :lib:cronet and :lib:imagedecoder, and src/…/Procomic.kt uses them with Turnstile token handling, mirror hosts, safe-browsing cookies, and reader image processing.

Notable locale/provider families

  • Arabic (src/ar/**) combines many multisrc Arabic scanlation sites with custom high-complexity sources. Madara/Zeist/MMRCMS wrappers appear in paths like src/ar/yurimoonsub/**, src/ar/paradisebl/**, and src/ar/onma/**; src/ar/procomic/** is a custom source with Turnstile/list tokens, mirror-host handling, safe browsing cookies, Cronet, and image decoding.
  • Spanish and Portuguese (src/es/**, src/pt/**) are large scanlation ecosystems with many Madara, MangaThemesia, ZeistManga, and custom KeiSource modules. src/es/yurionline/** shows the minimal Madara wrapper pattern; src/pt/yomumangas/** and src/pt/zettahq/** show custom filters and DTO-backed catalog/detail/page implementations.
  • Japanese (src/ja/**) has many publisher/official-reader integrations. src/ja/zenon/**, src/ja/tonarinoyoungjump/**, and src/ja/sundaywebevery/** use GigaViewer; src/ja/youngchampion/** and src/ja/takecomic/** use ComiciViewer; other Japanese modules are custom API/HTML clients with filters, DTOs, and image interceptors such as src/ja/unext/** and src/ja/ynjn/**.
  • Russian (src/ru/**) includes shared Russian provider families. src/ru/readmanga/**, src/ru/seimanga/**, src/ru/selfmanga/**, and src/ru/usagi/** use GroupLe; src/ru/senkuro/** and src/ru/senkognito/** use Senkuro; src/ru/slashlib/** uses LibGroup; custom sources such as src/ru/wamanga/** and src/ru/tomilolib/** provide localized filters and DTOs.
  • Thai and Turkish (src/th/**, src/tr/**) heavily use MangaThemesia, Madara, and ZeistManga wrappers. src/th/toomtammanga/** customizes Thai selector labels for MangaThemesia; src/tr/aesirscans/** customizes ZeistManga's Blogger/feed flow and adds Turkish status strings plus a special chapter-to-series lookup.
  • Vietnamese (src/vi/**) mixes WordPress/Madara-style wrappers with many custom readers. src/vi/zettruyen/** is an HTML-plus-JSON custom source; src/vi/yurigarden/**, src/vi/yurineko/**, src/vi/vihentai/**, and src/vi/tuitruyen/** include source-specific image decryption/descrambling or cipher helpers.
  • Smaller locale directories (src/bg/**, src/ca/**, src/cs/**, src/de/**, src/it/**, src/ko/**, src/uk/**) should not be assumed simple: some are thin wrappers (src/bg/utsukushii/**, src/ca/fansubscat/**, src/it/mangaworld/**), while others are API clients or anti-bot-aware implementations (src/cs/mangaboomers/**, src/de/mangatube/**, src/ko/navercomic/**, src/uk/mangarama/**).

Coupling

  • If a module's theme or multisrc superclass changes in src/…/build.gradle.kts, verify the Kotlin wrapper under src/<locale>/<source>/src/eu/kanade/tachiyomi/extension/<locale>/<source>/. Thin wrappers such as src/…/YuriOnline.kt, src/…/Zenon.kt, and src/…/Mangaworld.kt rely on methods and selector names supplied by the matching multisrc implementation; a theme/superclass mismatch silently changes catalog/detail/page behavior.
  • If source { lang = ... }, source { name = ... }, or multiple source blocks change in src/…/build.gradle.kts, verify src/…/NaverComic.kt. Its routing depends on the generated source name to choose mType; changing the display name without updating that branch can send a source to the wrong Naver API path.
  • If a baseUrl, mirror host, or deeplink pattern changes in a module build.gradle.kts, verify getMangaByUrl, getMangaUrl, and chapter URL parsing in that module's Kotlin files. Examples: src/…/build.gradle.kts declares /truyen-tranh/..*, and ZetTruyen.kt only accepts host-matching /truyen-tranh/{slug} or /truyen-tranh/{slug}/chuong-*; src/…/build.gradle.kts declares Blogger-style .*/…/.*.html deeplinks, and AesirScans.kt expects POST_PATH_REGEX to match those post paths.
  • If DTO field names change, update the parser and request flow together. src/…/Dto.kt maps chapter_name, chapter_slug, updated_at, and last_page, which ZetTruyen.kt uses for pagination and chapter URL generation. src/…/MangaBoomers.kt posts typed JSON bodies and parses typed DTOs for options, lists, details, chapters, and pages; schema drift can produce empty catalogs or broken readers without compile errors if defaults mask missing values.
  • If anti-bot or image-delivery code changes, test both catalog and reader paths. src/…/MangaTube.kt depends on ChallengeInterceptor.kt to establish cookies before API requests. src/…/Japscan.kt depends on its cache-host interceptor to serve captured reader images. src/…/Procomic.kt couples listing tokens, reader host learning, Turnstile handling, shared image caching, Cronet, and image decoding.

Risks

  • src/…/Procomic.kt is fragile because catalog access, safe-browsing cookies, mirror hosts, Turnstile tokens, reader-host learning, and image decoding all interact. If token refresh, mirror-host selection, or pageInterceptor behavior drifts from the site, popular/search can 403 or reader pages can return unusable images even though detail parsing still works.
  • src/…/Japscan.kt filters spoiler/raw chapters and caps outlier chapter numbers to work around site honeypots. If selectors or badge labels change, valid chapters may be hidden or bogus chapters may enter the library; if the cache-host image interceptor stops matching CACHE_HOST, captured reader pages will fail to load.
  • src/…/ChallengeInterceptor.kt hard-codes challenge markers, cookie names, header names, operations, and a delay. If the site changes window.__challange / _challange, required cookies, or operation codes, all API calls made by src/…/MangaTube.kt can fail before parser code runs.
  • src/…/NaverComic.kt contains migration-sensitive URL handling: comments note older versions stored absolute mobile URLs, and the implementation recovers the titleId by substring parsing. If Naver URL query shapes or stored legacy URLs change, library entries may open the wrong title or fail to fetch chapters.

Routing guidance and path-routable coverage notes

Route any change under src/ar/**, src/bg/**, src/ca/**, src/cs/**, src/de/**, src/es/**, src/fr/**, src/id/**, src/it/**, src/ja/**, src/ko/**, src/pt/**, src/ru/**, src/th/**, src/tr/**, src/uk/**, or src/vi/** to this doc when it affects a locale extension module. This includes module Gradle files, Kotlin sources, DTOs, filter files, interceptors, image decryptors/descramblers, assets, icons/resources, dependency additions, deeplink patterns, content warnings, package/source metadata, and base URL changes.

Do not route src/all/**, src/en/**, or src/zh/** here. Also do not route shared multisrc/library implementation changes here unless the changed file is physically under one of the covered locale paths; for a shared implementation change, route to the doc that owns the shared multisrc or library, then use this doc only for locale wrapper files that need local follow-up.