Import and display MLIP v3 extras#47
Conversation
|
Warning Review limit reached
Next review available in: 45 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR adds MLIP v3 series-extra import support, persists extra metadata through Room version 9, separates extras from normal episode flows, exposes extra episodes in anime details, and updates the app version from 1.1.0 to 1.2.0. ChangesSeries extras support
Estimated code review effort: 4 (Complex) | ~60 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@repository-api/src/main/kotlin/com/miruplay/tv/repository/LibraryAnimeResolver.kt`:
- Around line 76-80: Update the merged extras pipeline in LibraryAnimeResolver
so the result of flatMap and distinctBy(Episode::id) is sorted using the
existing extra_kind/extra_sort_order comparator before returning. Add a test
covering extras from multiple related groups and verify the merged ordering.
In
`@repository-api/src/main/kotlin/com/miruplay/tv/repository/MediaIndexRepository.kt`:
- Around line 23-25: Update the episode/extra classification flow in
MediaIndexRepository to handle a null result from MediaExtraKind.fromValue
before any episode or extra helpers use extraKind. Ensure rows with unmapped
extra_kind values are excluded from normal episode counting and episode flows
rather than treated as episodes, while preserving existing behavior for mapped
values.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: f85b3668-0e7b-4844-90e5-d6da7e8641ea
📒 Files selected for processing (24)
app/build.gradle.ktsapp/src/main/kotlin/com/miruplay/tv/di/AppModule.ktapp/src/test/kotlin/com/miruplay/tv/di/AppModuleTest.ktdata/schemas/com.miruplay.tv.data.db.MiruPlayDatabase/9.jsondata/src/main/kotlin/com/miruplay/tv/data/dao/IndexDao.ktdata/src/main/kotlin/com/miruplay/tv/data/db/MiruPlayDatabase.ktdata/src/main/kotlin/com/miruplay/tv/data/entity/IndexEntryEntity.ktdata/src/main/kotlin/com/miruplay/tv/data/repository/IndexRepositoryImpl.ktdata/src/test/kotlin/com/miruplay/tv/data/db/MiruPlayDatabaseMigrationTest.ktdata/src/test/kotlin/com/miruplay/tv/data/repository/IndexRepositoryImplTest.ktrepository-api/src/main/kotlin/com/miruplay/tv/repository/LibraryAnimeResolver.ktrepository-api/src/main/kotlin/com/miruplay/tv/repository/LibraryEpisodeResolver.ktrepository-api/src/main/kotlin/com/miruplay/tv/repository/MediaIndexMetadataCache.ktrepository-api/src/main/kotlin/com/miruplay/tv/repository/MediaIndexPosterGrouping.ktrepository-api/src/main/kotlin/com/miruplay/tv/repository/MediaIndexRepository.ktrepository-api/src/main/kotlin/com/miruplay/tv/repository/PlayableUriResolver.ktrepository-api/src/test/kotlin/com/miruplay/tv/repository/LibraryEpisodeResolverTest.ktrepository-api/src/test/kotlin/com/miruplay/tv/repository/MediaIndexMetadataCacheTest.ktrepository-api/src/test/kotlin/com/miruplay/tv/repository/MediaIndexPosterGroupingTest.ktrepository-api/src/test/kotlin/com/miruplay/tv/repository/PlayableUriResolverTest.ktscanner/src/main/kotlin/com/miruplay/tv/scanner/MlipLibraryIndexImporter.ktscanner/src/test/kotlin/com/miruplay/tv/scanner/MlipLibraryIndexImporterTest.ktui-tv/src/main/kotlin/com/miruplay/tv/ui/detail/AnimeDetailScreen.ktui-tv/src/main/kotlin/com/miruplay/tv/ui/detail/AnimeDetailViewModel.kt
Summary
Verification
./gradlew test assembleDebugEarlyStartupDiagnostics.ktandPlayerScreen.kt; CI lint is configuredcontinue-on-errorSummary by CodeRabbit
New Features
Bug Fixes