-
Notifications
You must be signed in to change notification settings - Fork 71
Updating the Yamtrack CSV import to allow specific book importing. #668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I had some changes for the wiki as well to describe the differences |
|
Hi, thanks for the PR. Instead of Also I think we can remove |
The reason I chose to hardcode hardcover was because it seemed to support isbn numbers as a title search. By making it a generic method, wont I then have ot add test case for missing metadata for all the other types of media as well? Where at the moment I've only done the specific code for books. I'll clean up the test case and remove the extra support files. This would be a hangover from my dedicated book import. |
|
Both Hardcover and OpenLibrary suport ISBN numbers in their title search. But I think it's a good idea to have it generic, with that we could say that the import from CSV can work either by providing Also you don't need to manage this case in Because it's already in And in the above function I don't think you need to add the try/except for For the test case, you can include a CSV containing an example of each media type, but you can leave it to me if you prefer. |
|
So I think I've pushed what I think you intended. I haven;t removed the specific book handler yet, but it's not used. And i guess I should update the import_books_yamtrack to make it generic and add other media types with no source_id? |
Added yamtrack partial csv file
|
Updated the naming of the tests i wrote to be more generic, called them yamtrack_partials, as opposed to explicitly books |
|
Any update to this being merged? I'm hoping to import all my books and stat using it. |
|
Yes! Thanks. |
The regular import will work with media_id and source set. But then can now be empty and a book search by title will be performed. The title can be a book title or an ISBN number.