Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Page index issues for some providers #491

Merged
merged 1 commit into from
Feb 12, 2023

Conversation

akabhirav
Copy link
Contributor

@akabhirav akabhirav commented Feb 8, 2023

Fixes Page starting index issues for certain providers.

Background
Tachiyomi does not standardize the starting indexes for it's extensions. This has led to some extensions starting the Page indexs from 0 and others from 1. This causes the reader in Tachidesk to crash since the first api to get Page with index 0 fails

@AriaMoradi
Copy link
Member

@Syer10 any ideas for a faster/better approach?

@Syer10
Copy link
Collaborator

Syer10 commented Feb 10, 2023

This looks fine to me, since it does the ordering and offet using a sql query it should be fast

@Syer10
Copy link
Collaborator

Syer10 commented Feb 10, 2023

Though I took a look at Tachiyomi and it seems like Tachiyomi re-indexes the pages anyway before downloading them
https://github.com/tachiyomiorg/tachiyomi/blob/34a586ce48d6c10ac9eadb697b955ba336044bc2/app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt#L326

@AriaMoradi AriaMoradi merged commit 544bf2e into Suwayomi:master Feb 12, 2023
@akabhirav akabhirav deleted the fix-page-index-issue branch February 24, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants