Modeling iiab-glue.db to enable mapping of books.id (metadata.db) and media.id (xklb-metadata.db) - #263
Closed
deldesir wants to merge 8 commits into
Closed
Modeling iiab-glue.db to enable mapping of books.id (metadata.db) and media.id (xklb-metadata.db)#263deldesir wants to merge 8 commits into
deldesir wants to merge 8 commits into
Conversation
Sync with upstream
deldesir
marked this pull request as draft
October 4, 2024 16:23
deldesir
marked this pull request as ready for review
October 14, 2024 20:50
Create iiab-glue.db if not exist
Member
Author
|
How to test
To further test, note the number in the URL for the video played from within Calibre-Web (i.e for http://<IIAB_URL>/books/read/31/mp4, the video ID is 31), note also the title of the video and note the media ID associated with it in |
1 task
1 task
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.
This pull request introduces the
glue_db.pymodule to model theiiab-glue.dbdatabase, facilitating the mapping betweenbooks.idinmetadata.dbandmedia.idinxklb-metadata.db.Key Changes:
New Module
glue_db.py: Implements theGlueDBclass andMediaBooksMappingschema to handle database creation, session management, and the mapping betweenmedia_idandbook_id.iiab-glue.dbfile if it does not exist.Tested on Ubuntu 24.04