Page 1 of 1

Noob: Easiest way to setup movie renaming post-processing

Posted: December 14th, 2013, 10:46 pm
by MKANET
I dont need anything fancy like moving the files to special directories. I just simply want SABnzbd to rename extracted media or ISO movie files to IMDB/TVDB names such as: "The Movie (2013)"; just keeping the file exactly where it was downloaded.

Can someone please tell me how to enable the easiest/simplest way to do this?

I already tried downloading the latest Movies script from the google code repository, sabscripts; and, extracted it in it's own directory. Then, pointed SABnzbd's script directory to that directory. However, I'm not sure what to do next to get it to rename these media files after they've been unrared.

Im not even sure if this is the best script for what I want to do; or, what else to do. I'd really appreciate some help to get it up and running.

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: December 15th, 2013, 7:14 pm
by MKANET
Is there a better place to ask for help for this? All I want to do is have SABnzbd automatically rename the media files (and the directories they reside in).

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: December 16th, 2013, 1:14 am
by sander
There is a better *way* to ask for help for this:

- give a few examples (but without using real movie names, as that is not allowed on this forum): what is the original name, what name do you want?
- what kind of algorithm do you propose for the name lookup? How does a script know the Real Name?
- what do you want to rename: the main directory? Sub-directories? VOB-files? .avi file? .srt files?
- what OS is SABnzbd running on?

FWIW: it does look fancy (or: fuzzy & not easy) to me.

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: December 16th, 2013, 11:06 am
by MKANET
Thanks for the reply.

OS: Windows 7 64bit.

Original:
D:\Downloads\the.movie.2013.1080p.Bluray.DTS.whatever\the.movie.2013.1080p.Bluray.DTS.whatever.mkv

What I want it to change to:
D:\Downloads\The Movie (2013)\The Movie (2013).mkv

There are already several standalone apps that do exactly this (both command-line and GUI on Windows, Mac, Linux); which check against either IMDB and/or TVDB online databases to "guess" the title of the movie/TV show. I thought there might be a SABnzbd plugin or a native feature for SABnzb that does this in the same same fashion. If there is one, I'd like to know exactly what to do to get it to work for movies.

Thanks again
sander wrote:There is a better *way* to ask for help for this:

- give a few examples (but without using real movie names, as that is not allowed on this forum): what is the original name, what name do you want?
- what kind of algorithm do you propose for the name lookup? How does a script know the Real Name?
- what do you want to rename: the main directory? Sub-directories? VOB-files? .avi file? .srt files?
- what OS is SABnzbd running on?

FWIW: it does look fancy (or: fuzzy & not easy) to me.

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: December 16th, 2013, 11:38 am
by sander
MKANET wrote: There are already several standalone apps that do exactly this (both command-line and GUI on Windows, Mac, Linux); which check against either IMDB and/or TVDB online databases to "guess" the title of the movie/TV show.
OK, can you give a link to such a CLI Linux app?

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: December 16th, 2013, 12:00 pm
by MKANET
By your response, I'm guessing maybe there isn't such a plugin for SABnzbd. I thought for sure there might be one. Oh well.

I've been using the multi-platform command line tool for some time "Phoenix Renamer" (works on Windows/Linux/Mac). Written in java.
http://forums.sagetv.com/forums/showthread.php?t=58024

I did a quick search on google; and, found another one that also supports Windows/Linux/mac that also has a CLI. However, I haven't tried it:
http://www.filebot.net/

I'm sure there are more, but didn't look that far into it since I'm looking I'm not using Linux; and, looking for something that can act as a SABnzbd post-processing plugin. Maybe there's a way to execute standalone CLI tools like the above? If that's possible, I'd like to know how.
sander wrote:
MKANET wrote: There are already several standalone apps that do exactly this (both command-line and GUI on Windows, Mac, Linux); which check against either IMDB and/or TVDB online databases to "guess" the title of the movie/TV show.
OK, can you give a link to such a CLI Linux app?

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: December 16th, 2013, 12:38 pm
by sander
Can you tell how you use phoenix-renamer from the CLI? I get the result below:

Code: Select all

sander@flappie:~/Downloads/complete$ ../PhoenixTools/phoenix-renamer The.Girl.With.Blabla.2009.BluRay.576p.H264-20-40/
INFO - Phoenix Home: ../PhoenixTools
INFO - Extracting Phoenix configuration and runtime files...
INFO - Phoenix Standalone is online and ready for commands
WARN - Cannot rename The.Girl.With.blabla.2009.SWEDISH.BluRay.576p.H264.mp4 since there is no metadata
sander@flappie:~/Downloads/complete$
So: "there is no metadata". Maybe I use it in the wrong way?

If I can succesfully run it from the CLI, it's easy to use it in a script.

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: January 4th, 2014, 6:03 pm
by MKANET
Sorry it took me so long to get back. To be honest I forgot. :)

Actually, it looks like you're using the old version. The latest version is here:
https://www.dropbox.com/s/3n7f5u70ouv20 ... -1.0.8.zip

I guess I might have been wrong, there aren't that many tools that do what Phoenix Renamer does. In fact, it's still the only one I could find that handles both TV shows and movies perfectly without requiring complex parameters ; and, is newgroup nzb-friendly.

I have Phoenix Renamer working perfectly as a SABNzbd postprocessing script. It renames all TV shows and movies in my download directory; perfectly. It even recognizes bluray directory structures.

My SABnzbd post processing script this:

C:\Progra~2\COMMAN~1\phoenix-renamer.exe --renameDirectories --renameArtifacts E:\Downloads

Plus, I have it delete all junk files:
del /s /q "%~1\*.nzb" >nul 2>nul
del /s /q "%~1\*.sfv" >nul 2>nul
del /s /q "%~1\*.nfo" >nul 2>nul
del /s /q "%~1\*.txt" >nul 2>nul
del /s /q "%~1\*.doc" >nul 2>nul
del /s /q "%~1\*.docx" >nul 2>nul
del /s /q "%~1\*.url" >nul 2>nul
del /s /q "%~1\*.jpg" >nul 2>nul
del /s /q "%~1\*.bmp" >nul 2>nul
del /s /q "%~1\*.par2" >nul 2>nul
del /s /q "%~1\*sample*.*" >nul 2>nul

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: January 20th, 2014, 4:30 pm
by NoTolerance
Just curious: Have you looked at my script?

YoVanilla

It doesn't do anything for TV - SickBeard handles that well enough for me. But I'm always looking for ways to improve mine where I can.

Re: Noob: Easiest way to setup movie renaming post-processi

Posted: January 20th, 2014, 5:32 pm
by MKANET
Yes, I saw your script. I was looking for something smart enough to handle both TV and movies since its more convenient for me to grab single TV episodes (not defined in NZBDrone) directly from my search index provider. I do the same thing for movies.

But, yes, NZBDrone works very well for renaming TV shows/seasons that it already knows about.