Deobfuscate folder name?

Come up with a useful post-processing script? Share it here!
Post Reply
samaritan
Newbie
Newbie
Posts: 3
Joined: July 23rd, 2018, 2:52 am

Deobfuscate folder name?

Post by samaritan » July 23rd, 2018, 3:02 am

Without any scripts, I'll end up with obfuscated folder name but correct file name (ie video file). With deobfuscatepy, instead of making it better, it actually made it worse. It renames the file name (which is already correct) from the deobfuscated/incorrect folder name. Now I have deobfuscated folder name AND file name.

Is there any script or setting that renames the folder name appropriately? Even if it just copies from the file name - that's good enough.

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

Re: Deobfuscate folder name?

Post by safihre » July 23rd, 2018, 3:39 am

Config > Sorting

Enable sorting for the right categories.
Set Sorting-string to:
%dn\%dn.%ext

samaritan
Newbie
Newbie
Posts: 3
Joined: July 23rd, 2018, 2:52 am

Re: Deobfuscate folder name?

Post by samaritan » July 24th, 2018, 3:40 pm

I used a combination of

%fn/%fn.%ext

Sometimes it works sometimes it doesn't. I honestly don't know what's wrong with it. Sometimes it would just create a folder named "%fn"

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

Re: Deobfuscate folder name?

Post by safihre » July 27th, 2018, 3:31 am

That might depend on the type of sorting used possibly. You do use the latest SABnzbd (2.3.4) right?

samaritan
Newbie
Newbie
Posts: 3
Joined: July 23rd, 2018, 2:52 am

Re: Deobfuscate folder name?

Post by samaritan » August 1st, 2018, 5:24 pm

Yes

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

Re: Deobfuscate folder name?

Post by safihre » August 2nd, 2018, 1:42 am

Can you enable debug logging in the Status and Inteface settings window and when it happens again send me the log at [email protected]?
It should do some sort of renaming.

As a sidenote: better tools for this to manage videos are Sonarr/Radarr.

Post Reply