CommunityScripts icon indicating copy to clipboard operation
CommunityScripts copied to clipboard

[Bug] renamerOnUpdate: default_template weird behaviour inside groups

Open echo6ix opened this issue 3 years ago • 0 comments

Another bug involving the period, ., character.

Where the default_template is defined as default_template = "$studio.$date.$title{.$performer}", if a group contains a null element it should be outputting nothing in the group, but if there is a period before the element, it will output the period.

In the table below lets say the following elements contain these values unless specified as null.

$studio = Google $date = 1970-01-01 $title = Hello $performer = null

template null elements output
default_template = "$studio.$date.$title{.$performer}" performer Google.1970-01-01.Hello..mp4
default_template = "$studio.$date.$title{$performer.}" performer Google.1970-01-01.Hello.mp4
default_template = "$studio.$date.$title{_$performer}" performer Google.1970-01-01.Hello.mp4
default_template = "$studio{.$date}.$title{.$performer}" date; performer Google..Hello..mp4

I have included my config.py file for troubleshooting.

config.zip

echo6ix avatar Nov 18 '22 05:11 echo6ix