Page 1 of 1
Remove/Clean "article" names
Posted: November 21st, 2009, 5:06 am
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.
Re: Remove/Clean "article" names
Posted: November 21st, 2009, 7:42 am
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
Re: Remove/Clean "article" names
Posted: November 21st, 2009, 10:01 am
by switch
General sorting in 0.5 will probably do what you want, all text after the YEAR value is ignored.
Re: Remove/Clean "article" names
Posted: November 21st, 2009, 12:47 pm
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
Re: Remove/Clean "article" names
Posted: November 21st, 2009, 12:55 pm
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 ?
Re: Remove/Clean "article" names
Posted: November 21st, 2009, 3:18 pm
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.
Re: Remove/Clean "article" names
Posted: November 21st, 2009, 4:39 pm
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 :-)
Re: Remove/Clean "article" names
Posted: November 22nd, 2009, 10:24 pm
by b0x
How about just the ability to change the name of a queued item before it downloads?
Re: Remove/Clean "article" names
Posted: November 23rd, 2009, 3:45 am
by shypike
In release 0.5.0 you can change name as long as it's still downloading.
Re: Remove/Clean "article" names
Posted: November 23rd, 2009, 3:49 pm
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 ... :-)
Re: Remove/Clean "article" names
Posted: November 23rd, 2009, 4:21 pm
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.