rmcrackan/Libation

Support for conditional "Number order in series"

Closed this issue · 6 comments

Is your feature request related to a problem? Please describe.
Sometimes, Audible will tag an audiobook as part of a series but not add numbers to the series entries. I'm new to Libation and was playing around with the <series#> specifier on the folder path for saving and noticed that a few of my series were getting saved in an unexpected way.

I'll admit that I didn't even know these series of mine had no entry numbers but apparently, that's a thing.

My naming template is currently this:

<first author>/<if series-><first series>/<series#> - <-if series><title short> [<id>]

which should result in a structure like this:

AuthorName/SeriesName/0# - SeriesName [AudibleID]/SeriesName EntryTitle [AudibleID].jpg
AuthorName/SeriesName/0# - SeriesName [AudibleID]/SeriesName EntryTitle [AudibleID].mp3

and it does work for most series but for the ones without entry number data, it does this:

AuthorName/SeriesName/- SeriesName [AudibleID]/SeriesName EntryTitle [AudibleID].jpg
AuthorName/SeriesName/- SeriesName [AudibleID]/SeriesName EntryTitle [AudibleID].jpg

leaving a starting dash followed by the series name. I can't rely on the `<-if series> conditional because they have actual series information, just not any numbers in the series.

Describe the solution you'd like
Ideally, I'd like to see a conditional for series number in the form of <if series#><-if series#> but I'm sure there could be other approaches too.

Describe alternatives you've considered
I've considered just not including the series number in my folder/file format but that can make it very difficult to actually know the proper order of (properly tagged) series, so I'd like to keep this information in the path.

@MajorTanya Thanks for the details. I used your template and it creates the folders as expected, with the correct series number. Can you please provide a link to one of the books whose series number is blank?

@MajorTanya Thanks for the details. I used your template and it creates the folders as expected, with the correct series number. Can you please provide a link to one of the books whose series number is blank?

There are a few but this one has the problem:
https://www.audible.de/pd/B004UVJAGU

Hopefully it's not an issue that it's on the German site.

Thanks @wtanksleyjr, I did miss the point.

Thank you for this suggestion! Included in the latest version v12.5.3