Using Newzbin NZB name instead of filename....

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
soco11
Release Testers
Release Testers
Posts: 13
Joined: February 4th, 2009, 9:50 pm

Using Newzbin NZB name instead of filename....

Post 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
Last edited by soco11 on January 27th, 2011, 10:48 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Using Newzbin NZB name instead of filename....

Post by shypike »

Create your own little user post-processing script.
More info: http://wiki.sabnzbd.org/user-scripts
soco11
Release Testers
Release Testers
Posts: 13
Joined: February 4th, 2009, 9:50 pm

Re: Using Newzbin NZB name instead of filename....

Post by soco11 »

shypike wrote: Create your own little user post-processing script.
More info: http://wiki.sabnzbd.org/user-scripts
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.
soco11
Release Testers
Release Testers
Posts: 13
Joined: February 4th, 2009, 9:50 pm

Re: Using Newzbin NZB name instead of filename....

Post by soco11 »

I feel like an idiot. Looking everywhere for a tut to make scripts. cant seem to find one. completely confused.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Using Newzbin NZB name instead of filename....

Post 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.
soco11
Release Testers
Release Testers
Posts: 13
Joined: February 4th, 2009, 9:50 pm

Re: Using Newzbin NZB name instead of filename....

Post 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!  ;D
Post Reply