rmcrackan / Libation

Libation: Liberate your Library
GNU General Public License v3.0
2.77k stars 152 forks source link

Feature Request: Allow custom book metadata that can be referenced in file naming templates #706

Closed mattalxndr closed 3 months ago

mattalxndr commented 1 year ago

Is your feature request related to a problem? Please describe. Unless the item is a performance or something, I like to order my audiobooks by the year of the first edition of the book. But Audible does not make that information available. Currently I'm finding the year on https://openlibrary.org/ and renaming everything manually. Obviously there are drawbacks to this. One is, I need to inform Libation about the rename.

Describe the solution you'd like I would like to be able to add custom fields and reference them in file name templates.

Describe alternatives you've considered I thought about suggesting that the year query to https://openlibrary.org/ could be handled by Libation if configured that way, but the connection between audiobook releases and original books can be pretty fuzzy. Plus having a general custom metadata feature is obviously way more applicable to general users.

Additional context Add any other context or screenshots about the feature request here.

Mbucari commented 1 year ago

This is a challenge. Let's use a concrete example: Mort Here's what Libation gets by querying Audible

Using only that, we need to find the corresponding book at openlibrary. Notice that there's no ISBN, Dewey Decimal Classification, or Library of Congress Classification, so we're our only option is to search for it. Thankfully openlibrary provides a free api that's easy to use, but searching gets messy. Search results are intended to be sorted by humans, but since this is an automated process the best we could do is just use the top result.

Here's an openlibrary query for Mort: https://openlibrary.org/search.json?q=Terry+Pratchett+Mort&limit=1

We lucked out, the first result looks good! But wait, there are 59 editions, 49 publication dates, and 23 publication years! Which do we choose? First from each?


I'm not saying no, I'm just trying to outline the problem.

mattalxndr commented 1 year ago

@Mbucari Under "Describe alternatives you've considered", I just mentioned my specific use case, but as I mentioned, I agree that "the connection between audiobook releases and original books can be pretty fuzzy. Plus having a general custom metadata feature is obviously way more applicable to general users."

If you take out that section, you will see my main point.

rmcrackan commented 3 months ago

Looking at/cleaning up some old tickets: Personal programming time has become extremely limited lately and this is beyond the scope of the features I intend to add.