dbr / tvnamer

Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api
https://pypi.python.org/pypi/tvnamer/
The Unlicense
912 stars 115 forks source link

Stop renaming hidden files #33

Closed smithjw closed 4 years ago

smithjw commented 13 years ago

Hey just wondering if there is a way to ignore hidden files in a directory (files with a "." before the filename) or particular files with certain characters in the beginning (ie "._"). My media is stored on a Drobo FS and it seems to create hidden duplicates of some of the files and I want my TVNamer config files to ignore them. cheers

dbr commented 13 years ago

tvnamer should really do this by default, but as a workaround for now, you could use the filename_blacklist config option. Something like:

{
   "filename_blacklist": [
    {"is_regex": true,
     "match": "^\\..*"}
    ]
}

..should work (not tested, let me know if it doesn't work!)

queeup commented 11 years ago

Nice to see this. I didn't realize blacklist feature. I was here to open issue about while recursive active tvnamer moves my *.torrent files also :) Now I can avoid.

lahwaacz commented 11 years ago

@queeup: you can also use 'valid_extensions' to move only files of certain type, for example: "valid_extensions": ["avi", "mp4", "mkv"]

queeup commented 11 years ago

Niceeee. Thx for info.