[RELEASE] Movie Set Artwork Automator
#26
(2013-01-30, 05:28)Tomkun Wrote: Another case would be to change a colon ':' to a dash '-', because I have seen that used a lot too.

I think converting one char to another might be confusing and then more people might wonder why it isn't finding their artwork. For now i think a simple regexp to strip anything that isn't alphanumeric, brackets, dash/underscore or space might be enough - s/[^a-zA-Z0-9()_ -]//g

If i get time I might add more lenient file existance checking. Rather than ask the OS if a file exists, do a file listing and apply the same regexp to files found, so that even if a set name uses ':' and the fanart filename uses '-', both would be stripped so a match would still be found on the name itself.

TODO list when I get home:
- Add thumbnail cache update (if Tomkun confirms problem)
- Add recursive search of artwork dir
- Strip illegal chars from set name when looking for artwork
- Add more logging about which files are being checked, for easier debugging of problems
Reply


Messages In This Thread
RE: [RELEASE] Movie Set Artwork Automator - by trentf - 2013-01-30, 06:21
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Movie Set Artwork Automator6