or Connect
AVS › AVS Forum › Video Components › Home Theater Computers › Simplest possible tool that will rename TV/Movie media file AND the folder it's in
New Posts  All Forums:Forum Nav:

Simplest possible tool that will rename TV/Movie media file AND the folder it's in - Page 2

post #31 of 37
You don't touch garbage torrent files, but you have a folder called "Horrible.bosses-2011.xvid.1080P"? Torrent or Usenet doesn't matter, it's still the same garbage file.
post #32 of 37
Yep, it leaves all the .nfo stuff out. It can be a little buggy with subtitles so that's just something to keep in mind. My folder would just be 'Horrible Bosses (2011)' with the 'Horrible Bosses (2011)' file in the folder. Then Media Center Master comes through and adds all the metadata and pictures. I've been meaning to try the subtitle option that comes with MCM but haven't gotten around to it. Here is the how to. Takes a little while to set up and because I don't use XBMC or Media Companion I had to do a little bit of tweaking but it wasn't much. And IMO was so worth it.
post #33 of 37
Thread Starter 
Thanks for this. It looks like FileBot is the only other renamer besides Phoenix Renamer that is smart enough to know the difference between movies and TV shows automatically (without having a separate mode for each). Both have cross-platform support.

However, FileBot is not what I consider the "Simplest possible" tool for the job; nowhere near as easy to use as Phoenix Renamer; as Phoenix renamer doesn't depend on cryptic groovy scripts for it to do simple renaming of TV/movies in the same folder from command-line.

FileBot: (In order to automatically rename both TV/movies in one folder)
Code:
// filebot -script "http://filebot.sf.net/scripts/sortivo.groovy" -trust-script <folder> [-non-strict] [--output path/to/folder]

/*
 * Move/Rename a mix of episodes and movies that are all in the same folder.
 */
def groups = args.getFiles().groupBy{
        def tvs = detectSeriesName(it)
        def mov = detectMovie(it, false)
        println "$it.name [series: $tvs, movie: $mov]"
        
        // DECIDE EPISODE VS MOVIE (IF NOT CLEAR)
        if (tvs && mov) {
                if (it.name =~ "(?i:$tvs - .+)" || parseEpisodeNumber(it.name) || parseDate(it.name)) {
                        println "Exclude Movie: $mov"
                        mov = null
                } else if (detectMovie(it, true)) {
                        println "Exclude Series: $tvs"
                        tvs = null
                }
        }
        return [tvs:tvs, mov:mov]
}

groups.each{ group, files ->
        // EPISODE MODE
        if (group.tvs && !group.mov) {
                return rename(file:files, format:'{n} - {s00e00} - {t}', db:'TheTVDB')
        }
        
        // MOVIE MODE
        if (group.mov && !group.tvs) {
                return rename(file:files, format:'{n} ({y}){" CD$pi"}', db:'TheMovieDB')
        }
}
Code:
filebot.exe -script fn:sortivo -trust-script  E:\Downloads [-non-strict] [--output  E:\Downloads]





With Phoenix Renamer:
(In order to automatically rename both TV/movies in one folder)
Code:
phoenix-renamer.exe --renameDirectories --renameArtifacts E:\Downloads



On a positive note, FileBot, does do a bunch of other things not related to renaming media file; which some people may find useful. For me, I only need to automatically rename media files TV and/or Movies.

Quote:
Originally Posted by rednoah View Post

Best and easiest tool has to be FileBot => http://filebot.sourceforge.net
It's open-source, cross-platform and super easy and intuitive to use. It's got a great cmdline and scripting features as well.
Check out the forums on how to set up complete automation with utorrent:
http://filebot.sourceforge.net/forums/viewtopic.php?f=4&t=5#p802
post #34 of 37
With FileBot: (in order to automatically rename both episodes / movies in one folder)
Code:
filebot -script fn:utorrent-postprocess "/path/to/input/" --output "X:/path/to/output" --action copy --conflict skip -non-strict

Check this thread for details:
http://filebot.sourceforge.net/forums/viewtopic.php?f=4&t=215&p=1561#p1561
post #35 of 37
Hey, MKANET or someone else...

How exactly do you do this?

"I have a directory/file monitoring software which will execute this renaming software silently once a brand new media file is completely available (not locked/opened by another app)."

Ive never created a batchfile or anything...

Can you create a step by step guide on how to set this up so it works as described? Sorry Im a bit of a newb with anything thats not GUI frown.gif

Thanks heaps if you help me out! smile.gif

Regards,

Korm.
post #36 of 37
As an aside is there a program to do this for music files as well?
post #37 of 37
The FileBot postprocess script supports Music as well:
http://filebot.sourceforge.net/forums/viewtopic.php?f=4&t=215&p=3382#p1561
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Home Theater Computers
AVS › AVS Forum › Video Components › Home Theater Computers › Simplest possible tool that will rename TV/Movie media file AND the folder it's in