Repository navigation
Tmdb import - #44
Open
mahibi wants to merge 2 commits into
Open
Tmdb import#44mahibi wants to merge 2 commits into
mahibi wants to merge 2 commits into
Conversation
- Added "Import from TMDb" section in SettingsView below "Import Database". - Implemented importTmdbCsv to parse TMDb exported CSVs directly. - Fetches poster images directly from TMDB api during import. - Handles both movie ratings and watchlists based on "Your Rating". - Added proper foreign key constraints handling by correctly ordering DB insertions (Movies -> LoggedMovie). - Handled IO threaded background file processing with localized Toast feedback. Assisted-by: Gemini 3.1 Pro Preview Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
- Removed synchronous TMDB API calls during CSV import to prevent long blocking times and rate limiting. - Added MovieSyncHelper to dynamically fetch missing poster URLs in the background. - Integrated MovieSyncHelper across all list view models (Watchlist, MyMovies, Diary, Reviews, Custom Lists). - Updates are persisted to Room DB and dynamically pushed to the UI via LiveData. Assisted-by: Gemini 3.1 Pro Preview Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TMDb import for movies + lazy loading of images.
If a movie has "Your rating" value, it is added to Movies. If it has no "Your rating" value, it is added to watchlist.
Supported CSV format is (TMDb format):
The code of this PR was generated by Gemini 3.1 Pro Preview.
I tested it with a CSV file of hundreds of movies. All were imported and images are loading fine when scrolling.
Feel free to make any changes to this PullRequest without asking or let me know what i should change.
PS: Thank you for this app, it's the cleanest open source TMDb app i could find 👍 I'm willing to contribute further if AI contributions are allowed.