Skip to content

feat: add date_upload_override for anime episodes and manga chapters for #358 and #385#386

Merged
Dark25 merged 5 commits intoAnimetailapp:masterfrom
RisPNG:impl_358
Apr 17, 2026
Merged

feat: add date_upload_override for anime episodes and manga chapters for #358 and #385#386
Dark25 merged 5 commits intoAnimetailapp:masterfrom
RisPNG:impl_358

Conversation

@RisPNG
Copy link
Copy Markdown

@RisPNG RisPNG commented Apr 17, 2026

This is a feature request that satisfy #385 and possibly #358. It adds a new field date_upload_override to the resource/schema. The purpose of this is to allow user to customize their library sort, preferably accurately but they can honestly go ham with it if they want. I can see this being used for user to accurately represent show timelines e.g. Better Call Saul, Breaking Bad, El Camino, etc. with this feature.

The places that respects this new field are in:

  1. Episode List sort when "Sort by upload date".
  2. Chapter List sort when "Sort by upload date".
  3. Downloads Queue sort when "Order by upload date".
  4. Built-in Player's episode list shows the overridden date.
  5. Updates tab.
  6. Anime Library sort when sorted by "Latest Episode".
  7. Manga Library sort when sorted by "Latest Chapter".
  8. Importing and Exporting from older version without the field to the new version with the field, and vice versa.

The modal of the sort follows the same design as "Skip intro length" modal, which uses WheelTextPicker for the Year, Month, and Date within an AlertDialog.

I've tried building the .apk with my own Android Studio Panda (Patch 1) SDK and the provided ./gradlew. I've tested Landscape and Portrait alongside with and without Tablet mode. The following images are the results.:

Anime Library Image sorted by "Latest Episode" (I mix Landscape and Portrait to showcase the UI)

The Nice Guys (Before Override) Released 2016, but Episode Date shows date of when user fetched the video
Screenshot_20260417_162747 Screenshot_20260417_183300
The New Button when Episode is Selected (Batch/Multiple Overrides are allowed too) The Date Override Modal/Dialog
Screenshot_20260417_184312 Screenshot_20260417_154751
The Nice Guys (After Override) Sorted Properly as per Released Date
Screenshot_20260417_162832 Screenshot_20260417_162907

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a date upload override feature for chapters and episodes, allowing users to manually set or remove upload dates. The implementation includes database schema updates, domain model modifications, and new UI components such as a date selection dialog. The override date is integrated into sorting logic, library views, and the download queue. Review feedback highlights a destructive mapping in the legacy database model that could lead to data loss, suggests expanding the year range in the date picker to accommodate older series, and identifies a technical issue regarding state mutation during composition in the UI logic.

Comment thread app/src/main/java/eu/kanade/domain/items/episode/model/Episode.kt Outdated
Comment thread app/src/main/java/eu/kanade/presentation/entries/components/ItemsDialogs.kt Outdated
Comment thread app/src/main/java/eu/kanade/presentation/entries/components/ItemsDialogs.kt Outdated
RisPNG and others added 4 commits April 17, 2026 19:17
…emsDialogs.kt

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…de for transparency, addresses fragile code structure
@Dark25
Copy link
Copy Markdown
Collaborator

Dark25 commented Apr 17, 2026

Thank you so much for your contribution, it has been very useful

@Dark25 Dark25 merged commit 880fff1 into Animetailapp:master Apr 17, 2026
1 check passed
@RisPNG
Copy link
Copy Markdown
Author

RisPNG commented Apr 17, 2026

When's the expected next release date btw?

@Dark25
Copy link
Copy Markdown
Collaborator

Dark25 commented Apr 17, 2026

I'm waiting to see if Mihon makes any modifications to the merge and implements any new features or bug fixes.

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.

2 participants