DVinyl icon indicating copy to clipboard operation
DVinyl copied to clipboard

[Feature]: When importing a collection, if an item has an ISBN number, other info should not be used for search

Open reneald opened this issue 2 months ago • 3 comments

Before suggesting

  • [x] I searched the existing issues and did not find a similar request.

What problem would this solve?

I imported a collection of books from Libib. Several books were mismatched with Hardcover, even though the imported data contained ISBN numbers which should be unique.

As far as I can tell, this happens when a book with that ISBN number could not be found in Hardcover, so DVinyl falls back to searching by title/author and accepting any match, even if that match has a different ISBN number in Hardcover.

Example: My imported collection contains "Raven's Imperium" by Edith Eri Louw, ISBN 9789022543078. This got linked to "Ravens" by Sarah Slean, https://hardcover.app/books/ravens-2004.

How could it work?

I think it would be safe to assume that, when imported data contains an ISBN number, that should be interpreted as the one and only truth. If the ISBN cannot be found in the external database, nothing should be scraped. The item should just be added with whatever information was in the imported data.

Alternatives you considered

No response

Would you like to help build it?

I could help test it

reneald avatar Sep 11 '26 06:09 reneald

This also affects different editions of the same book. In Hardcover, editions are usually not separate entries but rather sub-entries (with a URI of source-id/editions/edition-id. But DVinyl currently has no way of differentiating between editions like that. E.g. I have this edition of Stephen King's Wolves of the Call: https://hardcover.app/books/wolves-of-the-calla/editions/3657511 When I refresh metadata, the book's information gets replaced with the information of the first edition that can be found on Hardcover, which is this one: https://hardcover.app/books/wolves-of-the-calla/editions/20537179. The ISBN no longer matches my physical copy.

This is especially annoying for people like me whose collection is not primarily in the English language.

reneald avatar Sep 11 '26 13:09 reneald

hello! thank you! I am so sorry for the delay but I got you! I'll see what I can do about this asap !! thank you!

Kyonew avatar Sep 21 '26 14:09 Kyonew

Hi! I just released version 3.2.0, which fixes this :D

An ISBN in an imported row is now taken at its word: the row is looked up by that code alone. When Hardcover doesn't know the code, the book comes in with the data from your file, and no longer borrows another book's details. I tested it with your exact example: "Raven's Imperium" (9789022543078) is no longer turned into Sarah Slean's "Ravens".

Your follow-up about editions is fixed as well. When a code is found, the details now come from that edition rather than the book's most popular one, and a metadata refresh keeps the edition the item already has. On the confirm page you can also pick the edition by hand.

Feel free to reopen the issue if you run into any problems!

Kyonew avatar Sep 26 '26 17:09 Kyonew