Sweeper idiot's guide

I use this which replaces an underscore in a filename with a space
Code:
# Remove "_" in Filename
global filename _ action {renamefile {%orig%replace,_, ,}}
so if you replace the space with a hyphen like this
Code:
# Remove "_" in Filename
global filename _ action {renamefile {%orig%replace,_,-,}}
it should do what you want.
And this should work on the title
Code:
# Replace Title Ubderscore
global title New: action {settitle {%orig%replace,_ ,-,}}
 
That's not filename contains, it's filename matches.
No, it's contains but does support wildcards too.

Either 'filename _' or 'filename *_*' is fine.

This is the text version, I just borrowed this sweeper rule from the forum, this thread I believe.

# Remove _ from filename
global filename *_* action {renamefile {%orig%regsub,_ \s*, - ,}

You have a space before the \s* so it's looking for an underscore, followed by a space, followed by 0 or more spaces (the \s*). Remove the space before the \ and it should be fine.
 
I have just upgraded sweeper to 2.0.15. Where can I find the info on the reason for upgrade/fixes?
 
I have just upgraded sweeper to 2.0.15. Where can I find the info on the reason for upgrade/fixes?
There are some new features in this release:
The new example rule-set gives a starting point for those who wish to customise the dedup behaviour and the other changes are predominantly in there to support this.

As usual, the wiki page has been updated to include the new conditions and actions - http://wiki.hummy.tv/wiki/Sweeper
 
Back
Top