Page 1 of 1
Using Newzbin NZB name instead of filename....
Posted: January 26th, 2011, 8:45 am
by soco11
I was wondering if there was a way to use the title from the newzbin article and rename the filename?
example: On Newzbin and in sabnzb the nzb shows up like this:
SomeShow - 3x13 - showname
After Processing the file is extracted but the file name is: SomeShow.313.HDTV XviD LOL.avi
is there any way to get sabnzbd to use the nzb file name to rename the .avi file?
Windows 7 x64
Sabnzbd 0.6.0Alpha10
Re: Using Newzbin NZB name instead of filename....
Posted: January 26th, 2011, 8:48 am
by shypike
Create your own little user post-processing script.
More info:
http://wiki.sabnzbd.org/user-scripts
Re: Using Newzbin NZB name instead of filename....
Posted: January 26th, 2011, 9:01 am
by soco11
Thanks for the quick reply. I am kind of lost on the whole script thing. been trying to find a tutorial on making scripts but i'm coming up blank.
Re: Using Newzbin NZB name instead of filename....
Posted: January 27th, 2011, 7:32 am
by soco11
I feel like an idiot. Looking everywhere for a tut to make scripts. cant seem to find one. completely confused.
Re: Using Newzbin NZB name instead of filename....
Posted: January 27th, 2011, 9:39 am
by shypike
This should work:
Code: Select all
@echo off
cd /d %1
for %%a in (*.avi) do rename %%a %2.avi
Put this in a Notepad file and save it as rename-avi.cmd in a separate folder.
Set the path to the folder containing the file in Config->Folders.
Set rename-avi.cmd as the default script in Config->Switches.
It will rename the first encountered AVI file to the job name.
Re: Using Newzbin NZB name instead of filename....
Posted: January 27th, 2011, 9:50 am
by soco11
shypike wrote:
This should work:
Code: Select all
@echo off
cd /d %1
for %%a in (*.avi) do rename %%a %2.avi
Put this in a Notepad file and save it as rename-avi.cmd in a separate folder.
Set the path to the folder containing the file in Config->Folders.
Set rename-avi.cmd as the default script in Config->Switches.
It will rename the first encountered AVI file to the job name.
Thanks!!! I was looking around and was going to use
Code: Select all
cd /d %1
if exist *.iso ren *.iso %2.iso
And sort the TV shows into episode folders, but i think yours is exactly what i am looking for. thank you so much!
