Page 1 of 1
Re: Directories and naming, Script: Deobfiscate
Posted: August 17th, 2020, 12:30 pm
by daveman2000
HI there,
At some point I had everything working properly, I had a major crash and had to reinstall sabnzb and can not get things to work, primarily with respect to directories.
Under categories
Default
Script: Deobfiscate - works fine and files are properly named
Folder Path: Files always end up going into a subdirectory that is the same name as the .nzb file
If I add a star to the end of the directory: the file ends up in the correct location but remains obfuscated .
This is driving me crazy.
How can I get the file to be in the correct location and properly named? Why is this so hard?
Thanks
Dave
Re: Directories and naming
Posted: August 18th, 2020, 3:49 pm
by safihre
Can you confirm that Deobfuscate.py is actually being run? Is it shown in the history?
Re: Directories and naming
Posted: August 18th, 2020, 5:49 pm
by daveman2000
Yes. the logs show that Deobfuscate.py is actually being run
Running external script C:\Program Files\SABnzbd\scripts\Deobfuscate.py(\\SERVER\TV Shows\!!AAAA\Psych S03E01 1080p HEVC x265-MeGusta, Psych.S03E01.1080p.HEVC.x265-MeGusta.nzb, Psych S03E01 1080p HEVC x265-MeGusta, , *, alt.binaries.ratcave, 0, )
Re: Directories and naming
Posted: August 20th, 2020, 12:47 pm
by daveman2000
??
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 21st, 2020, 3:18 am
by safihre
And what is it shown as output of the script? It should say why it's not renaming.
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 21st, 2020, 10:03 am
by daveman2000
I get the following (No STAR in Folder Path)
------------------------
('SABnzbd version: ', '3.0.1')
('Job location: ', '\\\\SERVER\\TV Shows\\!!AAAA\\find me in paris s02e19 web h264-trump')
------------------------
No par2 files found to process.
------------------------
Trying to see if there are large files to rename
------------------------
Renaming \\SERVER\TV Shows\!!AAAA\find me in paris s02e19 web h264-trump\d4d9b13fff104652bf02823cf8b1a175.mkv to \\SERVER\TV Shows\!!AAAA\find me in paris s02e19 web h264-trump\find me in paris s02e19 web h264-trump.mkv
Renaming done!
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 21st, 2020, 10:09 am
by daveman2000
same file with a Star at end of directory /*
d4d9b13fff104652bf02823cf8b1a175.mkv is in the correct location (but as you can see not named correctly !
I get a lot of information but these are the headings..
Recursive repair/verify did not complete!
Trying to see if there are large files to rename
Found multiple larger files, aborting.
No par2 files or large files found
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 21st, 2020, 10:24 am
by sander
Found multiple larger files, aborting.
There you have it: the Deobfuscate will only rename if there is one large file. See
https://github.com/sabnzbd/sabnzbd/blob ... py#L35-L36
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 21st, 2020, 12:12 pm
by daveman2000
Still in the wrong location!!!
No par2 files found to process.
------------------------
Trying to see if there are large files to rename
------------------------
Renaming \\SERVER\TV Shows\!!AAAA\find me in paris s02e23 web h264-trump\e42a47aff5024b0e9f8c34d5f690b99a.mkv to \\SERVER\TV Shows\!!AAAA\find me in paris s02e23 web h264-trump\find me in paris s02e23 web h264-trump.mkv
Renaming done!
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 21st, 2020, 1:09 pm
by sander
Still in the wrong location!!!
Why are you shouting?
Renaming
\\SERVER\TV Shows\!!AAAA\find me in paris s02e23 web h264-trump\e42a47aff5024b0e9f8c34d5f690b99a.mkv to
\\SERVER\TV Shows\!!AAAA\find me in paris s02e23 web h264-trump\find me in paris s02e23 web h264-trump.mkv
Renaming done!
Deobfuscate does not change the directory, so the logging shows correct behaviour.
Aren't you confusing this with (TV) Sorting? TV Sorting does create subdirectories.
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 21st, 2020, 6:33 pm
by daveman2000
I thought all caps was shouting
Can you then please give me instructions how to set it up? This is driving me crazy
Enable TV shortin is checked
Download Dir: \\SERVER\TV Shows\!!AAAA
sort string - %dn.%ext
thanks
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 22nd, 2020, 12:43 am
by sander
"sort string - %dn.%ext" that means Jobname.Extension. No "/" and thus no subdirectory at all
Click on one of the presets, check the "Processed Result" below to see if you want that. If not, click another Preset
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 22nd, 2020, 12:59 pm
by daveman2000
So I think I resolved the issue.
Under sort String I needed to put in the full path as \\SERVER\TV Shows\!!AAAA\%dn.%ext
and now it seems to work.
Re: Re: Directories and naming, Script: Deobfiscate
Posted: August 22nd, 2020, 1:00 pm
by daveman2000
Thanks for all the help.