Closed shokinn closed 2 years ago
When I add a series to my filenames / folders it results in multiple blanks when the book is not part of a series
I thought about this. Without more and more templates I couldn't think of how to avoid it. I remove empty directories so it at least fixes this issue foo\<series>\bar
=> foo\\bar
=> foo\bar
Your
It would be awesome if the series number would be also available with a leading 0 as it is available with the chapters.
I thought of this one too. From easiest to fix to hardest:
1) Series are different because they're often expanding. Today's 1 of 9 is tomorrow's 01 of 10. 2) Books don't carry in their metadata how many are in a series. That will require a new query to audible and brand new a cache store + retrieve so we aren't querying the same info again and again for each book in the series. 3) Position in a series is often WEIRD. These are all actual examples from my library:
1-7
, 5-8
0.4
, 2.5
0.1-0.5
II
instead of 2
one
instead of 1
For all of these oddities it's easy to print out the current value but not easy to parse into a regular number to determine leading zeros. I spent a long time going down this rabbit hole before deciding against it.
Sounds awesome :)
WTF! Audible is sometimes soooooooo broken. But 1. was/is the important one for me 2. was more like a nice to have. So ¯\(ツ)/¯
Perfect, thank you for the review.
As per usual, now that the discussion part is satisfactory, I've added this into my queue and I'm closing this issue here. When it's complete, I'll update this again which will notify you. No ETA
Thanks again
I'm experimenting with tracking enhancements and feature requests using github issues instead of a local file.
Possible solutions: <if series></if series>
or <when series></when series>
Example: <if series><series> <series#> - </if series>
Concerns: enabling user scripting is tricky, especially in terms of security or accidental cascades. Be careful. Use whitelisting.
Added to v6.4.4
<if series->
...<-if series>
I went with if series
instead of when series
for the incredibly technical reason that fewer characters means it fit in the UI with less twiddling :)
The arrow syntax actually is technical. There's a lot of validation code preventing slashes where you aren't allowed to define additional paths. Using html-style end tags would have meant a lot of code churn. By using filename-legal characters I was able to finish this feature much faster
Hi @rmcrackan, works awesome 👍
Thanks!
Reference: #50
Hey @rmcrackan, I'm sorry to bother you again with this but I found 2 points which does not work out so well with new custom file and folder names.
1. Blanks in filnames / folders
Custom file naming:
Output for non series books:
Output for books within a series:
As you see for non series books it results in
\ - <tiltle> [...]
and\<author> - - <title> [...]
. Is there any way to include a check if the book is part of a series or not? Something like:Where everything between
<when series>
and</when series>
would only be used when the book is part of a series.2. Series number available with leading 0(s) / Userdefined amount of leading 0(s)
For example (the idea from before not yet applied):
Every
#
will be a placeholder for a number so that for the 1st book in a series it would be#
=1
,##
=01
,###
=001
, ...What do you think?