@Ryan_van_Barneveld I’ve tried your script again with some more files and everything works as it should.
Is there a way for the script to look for not only foo_dr.txt file but also if the txt file is named with the album DR value. Eg if the txt file is named: foo_DR12.txt or foo_DR7.txt.
@TreeZorro
Glad the update is working well for you. I’ll do an update soon where you can specify your options from the command line so you can just run it repeatedly without questions, or add it to a batch file and not have to answer any questions.
As for supporting other type of log files, can you explain your use case more? What app is generating log files with the DR value in the log file’s file name?
New update to the drRoon script adds support for command line arguments to bypass the interactive questions (note, “no” is now represented by 0 in accordance with common practice)
ie.
python drRoon.py --folder-score 0 --metadata 1 --rename-logfile 1 "Music/Folder"
Also, a “–find-missing” option has been added to recursively check the provided folder for missing log files. This is handy if you’ve added new albums to your library but haven’t generated foo_dr.txt log files yet.
ie. python drRoon.py --find-missing "Music/Folder"
Thank you for the update👍
Regarding logfiles with the DR value in the filename, it’s the DR meter component in Foobar that has the possibility to display the album value in the filename. You set a placeholder (%drvalue%) in the advanced settings for the DR Meter in Foobar and it creates a filename with the DR value in it. It is decribed here in more detail: Dynamic Range plugin - Page 5
For me it’s about convinience to be able to see the the DR value without opening the txt file when I poke around in explorer. So it would be great if it was possible for the script to see this file with the DR value.
Should be doable if I just have it look for txt files starting with “foo”, and append “processed” to whatever file name is used once the tags have been applied. Let me think this through and if it makes sense I can make the change.