Scan folders within folders

2bit

07-04-2010 15:26:30

Hey,

My current setup is ../Tv-Shows/<Name of show>/<season number>/<episode number>/episode.avi .
So withing the Season folder, there are many more folders each containing only one episode and it's nfo (sometimes). I've been trying to get tvrename to scan within the folder fully, but so far all i get is the missing files showing up, it does not see the files within the other folders. I would normally just do it manually, move the files out and then run tvrename, but there are too many folders for one man. :( Any idea on how i can get it to do this? Bonus points if it can move the file out of it after renamed so after it's completed, in the Season folder there will be the episodes(properly named) and just a bunch of empty folders, so i can finally be a bit more organised.

Thanks alot for any help.

ScoopD

08-04-2010 16:08:21

If you want to move all the episodes(not the associated files, eg. nfo) so that you have ../Tv-Shows/<Name of show>/<season number>/episode.avi you need to add the TV-Shows folder into your scan folders list. I have not had to do this with the latest versions, but this worked for me to reorganise a bunch of files into their correct folders in an earlier version of the app.

The alternative would be to write something like a VBScript to do this doing a recursive folder scan. Not too complicated, but it would depend on the format of your files - i.e. do they include Show Name and season number.

sstteevvee

26-04-2010 14:55:05

Do what ScoopD says, temporarily having your media library as part of the "Search Folders" list. Also, go to Options>Preferences>Files and Folders, and turn on "Copy/Move files with same base name as video". If your NFO files have the same name, they'll also be moved to the destination folder, along with the AVIs.

Depending on how your current media library is laid out, you might have to add a new "Filename Processor". If the video files themselves are named something like "Show Name - S04E05 - Episodename.avi" then you're ok. Otherwise, you need some extra magic to find the season and episode number.

If your show is something like "Show Name\Season 04\Episode 05\Episodename.avi", then you need to set up TVRename to pick out the season and episode number from the path name.

Go to Options>Filename Processors, and add a new entry, with the Regex:

season (?<s>[0-9]{1,2})\\episode (?<e>[0-9]{1,2})

Turn on "Full path", and make sure the row is enabled. You can check to see if it is working OK, by setting the test folder in that dialog.

Do a "Scan", and it should offer to rearrange everything for you. Also watch out for double episodes, as these aren't automatically detected: edit the season on "My Shows" to merge episodes together.

You can test it on one show at a time by right-clicking on a show in "My Shows", and choosing "Scan".