Music Naming - {audio.bitratestring} creating additional folder
Posted: 03 Feb 2017, 18:02
Just got word of a problem from a Plex user trying to rename their music. They wanted to include the bitrate in the filename, so used Hoping for an output like Music/Buckcherry/Fifteen/07 - Crazy bitch - [249 kbps], but instead, the {audio.bitratestring} in filebot used kb/s, so the output is an extra folder as seen here 
This would make a file named "s].mp3" put in the "07 - Crazy Bitch - [249 kb" folder.
I was able to find a work around for him, by adding to the end of bitratestring in the original script, making it making it come out correctly

Just thought i'd bring it you your attention, as the fix isn't obvious to most. Maybe change kb/s to kbps in the audio.bitratestring expression if possible?
Cheers
Code: Select all
Music/{artist}/{album} {y}/{pi.pad(2)} - {t} - [{audio[0].bitratestring}]

This would make a file named "s].mp3" put in the "07 - Crazy Bitch - [249 kb" folder.
I was able to find a work around for him, by adding
Code: Select all
.replace('/', 'p')
Code: Select all
Music/{artist}/{album} {y}/{pi.pad(2)} - {t} - [{audio[0].bitratestring.replace('/', 'p')}]

Just thought i'd bring it you your attention, as the fix isn't obvious to most. Maybe change kb/s to kbps in the audio.bitratestring expression if possible?
Cheers