mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
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:
parent
fb6ee8271f
commit
9c435891f6
2 changed files with 12 additions and 13 deletions
|
@ -13,8 +13,9 @@
|
|||
- Add more info to WorkerInfo page
|
||||
- Added "next scheduled run"
|
||||
- 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
|
||||
|
||||
## Fixes
|
||||
|
|
|
@ -98,17 +98,15 @@ fun Manga.defaultReaderType(): Int {
|
|||
)
|
||||
) {
|
||||
ReadingModeType.LONG_STRIP.flagValue
|
||||
// } else if (currentTags.any {
|
||||
// tag -> tag == "chinese" || tag == "manhua" || tag == "comic"
|
||||
// } || (
|
||||
// isComicSource(sourceName) &&
|
||||
// !sourceName.contains("tapas", true) &&
|
||||
// currentTags.none { tag -> isMangaTag(tag) }
|
||||
// ) || (
|
||||
// sourceName.contains("manhua", true) && currentTags.none { tag -> isMangaTag(tag) }
|
||||
// )
|
||||
// ) {
|
||||
// ReadingModeType.LEFT_TO_RIGHT.flagValue
|
||||
} else if (currentTags.any {
|
||||
tag -> tag == "comic"
|
||||
} || (
|
||||
isComicSource(sourceName) &&
|
||||
!sourceName.contains("tapas", true) &&
|
||||
currentTags.none { tag -> isMangaTag(tag) }
|
||||
)
|
||||
) {
|
||||
ReadingModeType.LEFT_TO_RIGHT.flagValue
|
||||
} else {
|
||||
0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue