Is there a rename script ?

Come up with a useful post-processing script? Share it here!
Post Reply
KalEl
Newbie
Newbie
Posts: 4
Joined: June 4th, 2018, 8:06 am

Is there a rename script ?

Post by KalEl » June 4th, 2018, 8:10 am

Hello,

after fighting for days against obfuscated nzbs, i like to start a script after the download that gives
the .mkv the foldername.

Because, the folder is named correct, only the file is cryptic.

User avatar
safihre
Administrator
Administrator
Posts: 2815
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Is there a rename script ?

Post by safihre » June 7th, 2018, 1:10 am

You can do this with SABnzbd, just enable in Config > Sorting > "Job Name as Folder Name".
Then make sure to enable it for the right categories (Series for series, and Movies for movies, or just use the Default category).

Or you can use the Deobfuscate.py script that is included with SABnzbd, it's in the /scripts/ folder of your SABnzbd installation folder.

KalEl
Newbie
Newbie
Posts: 4
Joined: June 4th, 2018, 8:06 am

Re: Is there a rename script ?

Post by KalEl » June 7th, 2018, 5:18 am

Thank you. In sorting there is only "Job name as filename". No foldername.
If i want to use a .py script, i need to install python, right ? (Win 7 64)

User avatar
safihre
Administrator
Administrator
Posts: 2815
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Is there a rename script ?

Post by safihre » June 7th, 2018, 6:36 am

Yes and Yes ;)
Make sure to select "Add to path" during the Python install.

KalEl
Newbie
Newbie
Posts: 4
Joined: June 4th, 2018, 8:06 am

Re: Is there a rename script ?

Post by KalEl » June 7th, 2018, 6:04 pm

Tested the sorting. Doesnt work.
Can i have a default renaming for every file or do i have to klick all tv, movie etc ?

User avatar
safihre
Administrator
Administrator
Posts: 2815
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Is there a rename script ?

Post by safihre » June 9th, 2018, 5:06 am

The sorting does work, but it will only do it for the categories you selected and if your download is in those categories. Also make sure to have it enabled (extra checkbox).
And of course it will only work if it can match things correctly, so not activating Movie sorting on series.

The Dobfuscate.py script will work for everything, so maybe easier to use that and set it for your Default category. All other categories the script should be set to "Default".

KalEl
Newbie
Newbie
Posts: 4
Joined: June 4th, 2018, 8:06 am

Re: Is there a rename script ?

Post by KalEl » June 9th, 2018, 5:37 am

I thought, if i do not check any categories, only default, the renaming will work for everything.

I will install python then...

Post Reply