chore: Re-enable reading mode detection for LTR

But now it's only triggered if it's comic, since manhua is now mixed of
webtoon format and comic format.
This commit is contained in:
Ahmad Ansori Palembani 2024-08-02 10:24:31 +07:00
parent fb6ee8271f
commit 9c435891f6
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 12 additions and 13 deletions

View file

@ -13,8 +13,9 @@
- Add more info to WorkerInfo page - Add more info to WorkerInfo page
- Added "next scheduled run" - Added "next scheduled run"
- Added attempt count - Added attempt count
- Disable LTR/Comic/Manhua auto detection - `english` tag no longer cause reading mode to switch to LTR (mangkoran)
- `english` tag no longer cause reading mode to switch to LTR (mangkoran) - `chinese` tag no longer cause reading mode to switch to LTR
- `manhua` tag no longer cause reading mode to switch to LTR
- Local source manga's cover now being invalidated on refresh - Local source manga's cover now being invalidated on refresh
## Fixes ## Fixes

View file

@ -98,17 +98,15 @@ fun Manga.defaultReaderType(): Int {
) )
) { ) {
ReadingModeType.LONG_STRIP.flagValue ReadingModeType.LONG_STRIP.flagValue
// } else if (currentTags.any { } else if (currentTags.any {
// tag -> tag == "chinese" || tag == "manhua" || tag == "comic" tag -> tag == "comic"
// } || ( } || (
// isComicSource(sourceName) && isComicSource(sourceName) &&
// !sourceName.contains("tapas", true) && !sourceName.contains("tapas", true) &&
// currentTags.none { tag -> isMangaTag(tag) } currentTags.none { tag -> isMangaTag(tag) }
// ) || ( )
// sourceName.contains("manhua", true) && currentTags.none { tag -> isMangaTag(tag) } ) {
// ) ReadingModeType.LEFT_TO_RIGHT.flagValue
// ) {
// ReadingModeType.LEFT_TO_RIGHT.flagValue
} else { } else {
0 0
} }