Fix AnimePahe episode sorting and numbering logic #881
No reviewers
Labels
No labels
Bug
Domain change
Duplicate
Features request
Remove request
Source is down
Source request
Wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Kohi-den/extensions-source#881
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checklist:
extVersionCode
value inbuild.gradle
for individual extensionsoverrideVersionCode
orbaseVersionCode
as needed for all multisrc extensionsisNsfw = true
flag inbuild.gradle
when appropriateid
if a source's name or language were changedweb_hi_res_512.png
when adding a new extensionProblem:
Previously, the app directly relied on the episode numbers returned by AnimePahe's backend. This caused issues in cases where series had multiple seasons or non-standard episode numbering (e.g., a second season starting at episode 25). As a result, the app would incorrectly match new episodes (like episode 25 of season 2) with existing entries, leading to inaccurate updates and metadata.
Fix:
Modified the
episodeListParse
logic to:recursivePages
function.date_upload
timestamp to ensure correct order.This ensures that episode tracking within the app is consistent and season-agnostic, preventing mismatches across multi-season series or irregular numbering schemes.