[Windows] YoVanilla: Movie and Documentary Post-Processing

Come up with a useful post-processing script? Share it here!
Post Reply
kpoman
Newbie
Newbie
Posts: 12
Joined: December 17th, 2012, 11:12 pm

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by kpoman »

Hey NoTolerance, great script! Thank you for making life easy! Is there any way to prevent creating the extra folder? For example, I'm just using your script for one folder called "movies" so my category is set to HDCat=movies to match SAB. My movies folder is E:\movies. After running YoVanilla, I would prefer the final re-named movie to be moved to this folder and not have another folder created under E:\movies. Is that possible? Thanks in advance for your time!
zetareticuli
Newbie
Newbie
Posts: 5
Joined: March 24th, 2013, 6:16 am

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by zetareticuli »

Agree! Nice script but having same issue as kpoman
MajorMercyFlush
Newbie
Newbie
Posts: 7
Joined: November 16th, 2013, 7:35 am

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by MajorMercyFlush »

Hi NoTolerance - I sent you a PM regarding what we were talking about. Not sure if you had missed it.
NoTolerance
Full Member
Full Member
Posts: 127
Joined: June 27th, 2012, 9:55 am

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by NoTolerance »

kpoman wrote:Hey NoTolerance, great script! Thank you for making life easy! Is there any way to prevent creating the extra folder? For example, I'm just using your script for one folder called "movies" so my category is set to HDCat=movies to match SAB. My movies folder is E:\movies. After running YoVanilla, I would prefer the final re-named movie to be moved to this folder and not have another folder created under E:\movies. Is that possible? Thanks in advance for your time!
zetareticuli wrote:Agree! Nice script but having same issue as kpoman
So to clarify, you want all the movie files all dumped into the same directory - no subfolders at all? Like this:

E:\movies\movie1.mkv
E:\movies\movie1.srt
E:\movies\movie1.sub

E:\movies\movie2.mkv
E:\movies\movie2.srt
E:\movies\movie2.sub

E:\movies\movie3.mkv
E:\movies\movie3.srt
E:\movies\movie3.sub
zetareticuli
Newbie
Newbie
Posts: 5
Joined: March 24th, 2013, 6:16 am

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by zetareticuli »

Apologies you can ignore my issue. Problem was similar but at my end not with YoVanilla.
kpoman
Newbie
Newbie
Posts: 12
Joined: December 17th, 2012, 11:12 pm

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by kpoman »

So to clarify, you want all the movie files all dumped into the same directory - no subfolders at all? Like this:

E:\movies\movie1.mkv
E:\movies\movie1.srt
E:\movies\movie1.sub

E:\movies\movie2.mkv
E:\movies\movie2.srt
E:\movies\movie2.sub

E:\movies\movie3.mkv
E:\movies\movie3.srt
E:\movies\movie3.sub
Yes! That's exactly what I would like! Thanks!
kpoman
Newbie
Newbie
Posts: 12
Joined: December 17th, 2012, 11:12 pm

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by kpoman »

Any progress? Thanks for your help!
NoTolerance
Full Member
Full Member
Posts: 127
Joined: June 27th, 2012, 9:55 am

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by NoTolerance »

I don't think I want to do this. It would require some pretty hefty rewrites and sort of defeats the purpose of the script, which is to rename and organize your downloads.

However, a couple releases back I added the option of calling an external application that can run after the script processes. You could write a simple batch file to grab the files, move them, and delete the leftover folders.

Something like this, maybe:

Code: Select all

@echo off
move /Y "%2\*" E:\movies\
rmdir /S /Q "%2"
exit
That code is untested and may not work - but it probably will. You'll have to try it and/or modify it as you need to. Be sure to set the destination path you want (the E:\movies\ part in my code above).

Create the batch file, save it somewhere (like your scripts folder), and edit your YoVanilla INI file. You'll need to set the AppPath value and turn PassArgs on.
kpoman
Newbie
Newbie
Posts: 12
Joined: December 17th, 2012, 11:12 pm

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by kpoman »

Thanks NoTolerance. I'll check this out!
NoTolerance
Full Member
Full Member
Posts: 127
Joined: June 27th, 2012, 9:55 am

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by NoTolerance »

Let me know if you need help.
kpoman
Newbie
Newbie
Posts: 12
Joined: December 17th, 2012, 11:12 pm

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by kpoman »

Nothing happens after YoVanilla runs. I'm doing something wrong. Okay, I copied your code in Notepad and saved/renamed the file kpoman.exe. I placed this file in c:\program files\sabnzb\scripts folder. Also, this is how I edited the YoVanilla.ini file:

[Post-Processing]
;===========================================================================
; Run an additional program/script after YoVanilla completes? 0 = NO, 1 = YES
;===========================================================================
RunApp=1

;===========================================================================
; Full path to script/program (including script or program name to run)
;===========================================================================
AppPath="C:\program files\SABnzbd\scripts\kpoman.exe"

;===========================================================================
; Pass arguments to script/program? 0 = NO, 1 = YES
; Arguments passed are:
; [1] Final destination directory and file name (e.g. "D:\Media\x264\My Film\My Film.mkv")
; [2] Final destination directory (e.g. "D:\Media\x264\My Film")
; [3] Folder name (e.g. "My Film")
; [4] File name (e.g. "My Film.mkv")
;===========================================================================
PassArgs=4

So what the batch file is supposed to do is move the contents (the actual movie) inside the folder that YoVanilla just created, for instance E:\movies\Goodfellas\Goodfellas.mkv to: E:\movies\Goodfellas.mkv and then delete the Goodfellas folder, right? What am I doing wrong? Thanks.
NoTolerance
Full Member
Full Member
Posts: 127
Joined: June 27th, 2012, 9:55 am

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by NoTolerance »

Name the file kpoman.bat instead.

And set PassArgs = 1
kpoman
Newbie
Newbie
Posts: 12
Joined: December 17th, 2012, 11:12 pm

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by kpoman »

Well, I tried your suggestion but nothing happened. Here is what the YoVanilla.ini file looks like now:

[Post-Processing]
;===========================================================================
; Run an additional program/script after YoVanilla completes? 0 = NO, 1 = YES
;===========================================================================
RunApp=1

;===========================================================================
; Full path to script/program (including script or program name to run)
;===========================================================================
AppPath="C:\program files\SABnzbd\scripts\kpoman"

;===========================================================================
; Pass arguments to script/program? 0 = NO, 1 = YES
; Arguments passed are:
; [1] Final destination directory and file name (e.g. "D:\Media\x264\My Film\My Film.mkv")
; [2] Final destination directory (e.g. "D:\Media\x264\My Film")
; [3] Folder name (e.g. "My Film")
; [4] File name (e.g. "My Film.mkv")
;===========================================================================
PassArgs=1

Here is the end of the Sabnzbs log when I tried to download Justice League War:

Only one file left.
Renaming/Moving E:\TV Series\Justice League War 2014 720p BluRay x264 YIFY\Justice.League.War.2014.720p.BluRay.x264.YIFY.mp4 to E:\Movies\Justice League War\Justice League War.mp4 SUCCEEDED! Now deleting...
Deleting E:\TV Series\Justice League War 2014 720p BluRay x264 YIFY SUCCEEDED!
Running external script or program you specified:
"C:\program files\SABnzbd\scripts\kpoman" "E:\Movies\Justice League War\Justice League War.mp4" "E:\Movies\Justice League War" "Justice League War" "Justice League War.mp4"
Yo man - let's get out of here. Word to your mother.

Not sure where to go from here. Thanks for your help!
NoTolerance
Full Member
Full Member
Posts: 127
Joined: June 27th, 2012, 9:55 am

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by NoTolerance »

You're still missing the .bat extension on the end.
kpoman
Newbie
Newbie
Posts: 12
Joined: December 17th, 2012, 11:12 pm

Re: [Windows] YoVanilla: Movie and Documentary Post-Processi

Post by kpoman »

Sorry, stupid mistake. Still didnt work though. Here is the YoVanilla.ini:

[Post-Processing]
;===========================================================================
; Run an additional program/script after YoVanilla completes? 0 = NO, 1 = YES
;===========================================================================
RunApp=1

;===========================================================================
; Full path to script/program (including script or program name to run)
;===========================================================================
AppPath="C:\program files\SABnzbd\scripts\kpoman.bat"

;===========================================================================
; Pass arguments to script/program? 0 = NO, 1 = YES
; Arguments passed are:
; [1] Final destination directory and file name (e.g. "D:\Media\x264\My Film\My Film.mkv")
; [2] Final destination directory (e.g. "D:\Media\x264\My Film")
; [3] Folder name (e.g. "My Film")
; [4] File name (e.g. "My Film.mkv")
;===========================================================================
PassArgs=1

Here are the error messages from the Sabnzb log:

Only one file left.
Renaming/Moving E:\TV Series\Cloudy with a Chance of Meatballs 2 2013 720p BluRay x264 YIFY\Cloudy.with.a.Chance.of.Meatballs.2.2013.720p.BluRay.x264.YIFY.mp4 to E:\Movies\Cloudy With A Chance Of Meatballs 2\Cloudy With A Chance Of Meatballs 2.mp4 SUCCEEDED! Now deleting...
Deleting E:\TV Series\Cloudy with a Chance of Meatballs 2 2013 720p BluRay x264 YIFY SUCCEEDED!
Running external script or program you specified:
"C:\program files\SABnzbd\scripts\kpoman.bat" "E:\Movies\Cloudy With A Chance Of Meatballs 2\Cloudy With A Chance Of Meatballs 2.mp4" "E:\Movies\Cloudy With A Chance Of Meatballs 2" "Cloudy With A Chance Of Meatballs 2" "Cloudy With A Chance Of Meatballs 2.mp4"
Yo man - let's get out of here. Word to your mother.
The syntax of the command is incorrect.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
Post Reply