rmcrackan / Libation

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

Ability to rename folders when I change my folder formatting #896

Open cdloh opened 2 months ago

cdloh commented 2 months ago

Is your feature request related to a problem? Please describe. When I change the folder format of my Audiobooks it doesn't rename the older downloaded items

Describe the solution you'd like I'd like there to be an option to rename folders and already downloaded items so that they match the new formatting.

ralphtrickey commented 1 month ago

I understand that there isn't enough information in the file alone to do this. One way to do that might be to save a Primary and Secondary naming scheme. Then it would look for the files in both locations and either move it from the secondary to the primary location or download it to the primary location if it isn't in either location.

CLHatch commented 1 month ago

I understand that there isn't enough information in the file alone to do this. One way to do that might be to save a Primary and Secondary naming scheme. Then it would look for the files in both locations and either move it from the secondary to the primary location or download it to the primary location if it isn't in either location.

Assuming the requirement of including the ASIN somewhere in the folder or filename, it would appear all the info needed would be there, really. But not an easy task, would think.

Edit: I say assuming that requirement, because with the ASIN, all the other info can be gotten from Audible.

Edit 2: OK, maybe not as easy as that if assuming splitting audio by chapters? Not sure what info is stored in each audio file. I use single .m4b files myself.

ralphtrickey commented 1 month ago

I was thinking it might be more simple as part of the normal download. Assuming it does a full user catalog download each time it's run. If it doesn't, this becomes more complicated. This doesn't require the ASIN in the title since it was just downloaded and we have it. 1) Download the information from Audible. 2) Enhance the current check for whether it exists to check in both primary and secondary locations. I assume that it has full information from Audible at this point. 2a ) If it exists in the primary location continue 2b) If it exists in the secondary location move to the primary location and continue. 3) Do a normal download to the primary location.