mProjectsCode / obsidian-media-db-plugin

A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.
GNU General Public License v3.0
255 stars 31 forks source link

Support for Books as well #102

Closed AYA-123 closed 10 months ago

AYA-123 commented 1 year ago

To expand on your media types, you could add support for books as well, maybe pulling metadata from goodreads, such as Author, ISBN, cover etc.

ltctceplrm commented 1 year ago

I'd also love for MediaDB to do books, the the currently existing plugins to add books in Obsidian are lacking compared to MediaDB's capabilities:

The problem is that goodreads no longer offers api keys and will stop their usability so first you'd need to find a better free api.

Openlibrary might be a good choice

AYA-123 commented 1 year ago

I also think OpenLibrary is a good choice - are there currently any restrictions in terms of implementing it?

ltctceplrm commented 1 year ago

Well the creator of this plugin @mProjectsCode has said in the past that they didn't want to make the Book Search plugin obsolete and I think they are busy at the moment.

I was tempted to try adding support for books as a PR but I'm not at all proficient with any of this. I still gave it a go and after several hours of hitting my head against the wall I pretty much succeeded:

I can search by title or by OpenLibrary work ID and the plugin returns metadata for the title, original publish year, author cover, average online rating and median amount of pages across all editions.

Now I just need to figure out how to do a pull request correctly

a13ph commented 10 months ago

I guess this can be closed, as books are now supported

AYA-123 commented 10 months ago

Nice - thanks!