Re: Directories and naming, Script: Deobfiscate

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Directories and naming, Script: Deobfiscate

Post 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
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Directories and naming

Post by safihre »

Can you confirm that Deobfuscate.py is actually being run? Is it shown in the history?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Directories and naming

Post 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, )
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Directories and naming

Post by daveman2000 »

??
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Re: Directories and naming, Script: Deobfiscate

Post by safihre »

And what is it shown as output of the script? It should say why it's not renaming.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post 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!
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8831
Joined: January 22nd, 2008, 2:22 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post 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
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post 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!
User avatar
sander
Release Testers
Release Testers
Posts: 8831
Joined: January 22nd, 2008, 2:22 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post 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.
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8831
Joined: January 22nd, 2008, 2:22 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post 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
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post 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.
daveman2000
Newbie
Newbie
Posts: 11
Joined: September 28th, 2017, 5:41 pm

Re: Re: Directories and naming, Script: Deobfiscate

Post by daveman2000 »

Thanks for all the help.
Post Reply