[GetScripts] Various Scripts

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
mrboes
Posts: 6
Joined: 17 Apr 2014, 11:38

Re: [GetScripts] Various Scripts

Post by mrboes » 07 Mar 2017, 11:02

I Did a Save as but ended up with the same problem. Googled a bit more and did find a possible solution so I converted the file with tr -d '\r' < input.file > new.file (like dos2unix). Tested to post process again and now without error. I hav not been able to fully test it yet on a movie with a sample file in it, but so far good. Thanks for your support hugbug!

galronn
Posts: 9
Joined: 30 Jan 2018, 23:06

Re: [GetScripts] Various Scripts

Post by galronn » 30 Jan 2018, 23:13

Can anybody help, for the life of me, i cannot get flatten to work? i always get this error in the logs. Other scripts work so not sure what i'm missing here.

Tue Jan 30 18:04:04 2018 INFO flatten: File "C:\ProgramData\NZBGet\scripts\flatten.py", line 41
Tue Jan 30 18:04:04 2018 INFO flatten: print "This script can only be called from NZBGet (11.0 or later)."
Tue Jan 30 18:04:04 2018 INFO flatten: ^
Tue Jan 30 18:04:04 2018 INFO flatten: SyntaxError: invalid syntax
Tue Jan 30 18:04:04 2018 ERROR Post-process-script flatten.py for xxxx (terminated with unknown status)

Anybody point me to the right direction?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [GetScripts] Various Scripts

Post by hugbug » 30 Jan 2018, 23:31

You probably run it under Python 3 but the script needs Python 2.

galronn
Posts: 9
Joined: 30 Jan 2018, 23:06

Re: [GetScripts] Various Scripts

Post by galronn » 30 Jan 2018, 23:46

hugbug wrote:
30 Jan 2018, 23:31
You probably run it under Python 3 but the script needs Python 2.
I feel Dumb, yep that was it. THANK YOU

galronn
Posts: 9
Joined: 30 Jan 2018, 23:06

Re: [GetScripts] Various Scripts

Post by galronn » 31 Jan 2018, 00:56

And one more thing..... I've tried lots of combination and Flatten and it still creates subfolders when extracting..

My Destination directory for downloaded files is ${MainDir}\complete
My Flatten folder is D:\EpisodeS
ScriptOrder only has flatten.py in it
Extensions only has flatten.py in it

But when a NZB gets processed, it's still trying to flatten the ${MainDir}\complete and STILL creates a subfolder The.xxxx.S01E13.x264.

What am I missing here, or am i not understanding what flatten is suppose to do. I would expect that any and all files be extracted in D:\EpisodeS without creating a subfolder.

Tue Jan 30 19:51:23 2018 INFO flatten: Script triggered from NZBGet Version 19.1.
Tue Jan 30 19:51:23 2018 INFO flatten: Flattening directory: C:\ProgramData\NZBGet\complete\The.xxxx.S01E13.x264
Tue Jan 30 19:51:23 2018 INFO flatten: Checking for empty folders in:C:\ProgramData\NZBGet\complete\The.xxxx.S01E13.x264
Tue Jan 30 19:51:23 2018 INFO Post-process-script flatten.py for The.xxxx.S01E13.x264 successful

galronn
Posts: 9
Joined: 30 Jan 2018, 23:06

Re: [GetScripts] Various Scripts

Post by galronn » 31 Jan 2018, 19:09

Found a script called EasySort, and it does EXACTLY what i want... Thanks hugbug.

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests