Remove/Clean "article" names

Want something added? Ask for it here.
Post Reply
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Remove/Clean "article" names

Post by wally007 »

i've searched forums and Wiki but found no way toclean postprocessed / extracted folder , file names.

Lets say i'm downloading movie called Ubuntu that got uploaded as Ubuntu.UNRATED.720p and i'd like to remove UNRATED part in postprocessed/extracted folder and file name. Same with Ubuntu.REPACK.720p. Is there anyway to do it in .5.Alpha11 ?

I know i can rename folder manually after download completes but i'm trying to get XBMC/PLEX scrape my finished download folder and with REPACK and UNRATED eft in the folder name scrapers are way off ( not just built in , other media managers are having troubles too )

I tried enabling movie sorting but i dont think it removes UNRATED/REPACK from folder/file name.
Last edited by wally007 on November 21st, 2009, 7:29 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Remove/Clean "article" names

Post by shypike »

The easiest way to do it is to write a post-processing script.
That is, if you can write (simple) scripts.
For Windows you would do something like this:

Code: Select all

@echo off
cd /d %1
cd ..
set name=%3
set name=%name:.REPACK=%
set name=%name:.UNRATED=%
ren %3 %name%
For more info see: http://wiki.sabnzbd.org/user-scripts
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Remove/Clean "article" names

Post by switch »

General sorting in 0.5 will probably do what you want, all text after the YEAR value is ignored.
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Re: Remove/Clean "article" names

Post by wally007 »

shypike wrote: The easiest way to do it is to write a post-processing script.
That is, if you can write (simple) scripts.
For Windows you would do something like this:

Code: Select all

@echo off
cd /d %1
cd ..
set name=%3
set name=%name:.REPACK=%
set name=%name:.UNRATED=%
ren %3 %name%
For more info see: http://wiki.sabnzbd.org/user-scripts
Cant script my way out of the box :-) And i'm using SNow Leopard :-( so your script wont work for me. THanks
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Re: Remove/Clean "article" names

Post by wally007 »

switch wrote: General sorting in 0.5 will probably do what you want, all text after the YEAR value is ignored.
Not sure why after the year but last few nzb's i got were formatted using following scheme ( name of the movie is Ubuntu ):

Ubuntu.UNRATED.720p.BluRay.x264-REFiNED
or
Ubuntu.REPACK.720p.Bluray.x264-CBGB

as you can see year is not used at all and i actually dont mind. I'd like to leave everything in place except be able to set few "keywords" that get removed EVERYTIME. Words like PROPER , REPACK , UNRATED or even BluRay and x264 i'd like to be able to remove.

Thanks !!!!

Is there some kind of hidden setting in .5.Alpha.11 like tv_country that i can try to use ?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Remove/Clean "article" names

Post by shypike »

I filed a feature request https://trac2.assembla.com/SABnzbd/ticket/340
No promises for a delivery date, but I think it has a good cost/benefit value.
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Re: Remove/Clean "article" names

Post by wally007 »

Thanks .. i think it would be very valuable feature and not just for movies like my example Ubuntu , but also for TV episodes when they get REPACKed :-)
User avatar
b0x
Newbie
Newbie
Posts: 41
Joined: March 10th, 2009, 2:56 pm

Re: Remove/Clean "article" names

Post by b0x »

How about just the ability to change the name of a queued item before it downloads?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Remove/Clean "article" names

Post by shypike »

In release 0.5.0 you can change name as long as it's still downloading.
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Re: Remove/Clean "article" names

Post by wally007 »

shypike wrote: The easiest way to do it is to write a post-processing script.
That is, if you can write (simple) scripts.
For Windows you would do something like this:

Code: Select all

@echo off
cd /d %1
cd ..
set name=%3
set name=%name:.REPACK=%
set name=%name:.UNRATED=%
ren %3 %name%
For more info see: http://wiki.sabnzbd.org/user-scripts
Tried to use your script per instruction in wiki but its not working. ( i changed %1 to $1 ). I'm sure i'm not doing it right but wiki is pretty thin. But i'm trying ... :-)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Remove/Clean "article" names

Post by shypike »

Windows uses %1, %2 for parameters.
Unix and OSX use $1, $2.

There are two sample scripts in the distribution.
Sample-PostProc.cmd
and
Sample-PostProc.sh

We don't have a tutorial for writing scripts, there are plenty on the Web.
Post Reply