Search found 8 matches

by copico
June 5th, 2016, 4:39 pm
Forum: Post-Processing Scripts
Topic: Truncated NZB filename in post processing script
Replies: 8
Views: 6727

Re: Truncated NZB filename in post processing script

I think the first argument passed to external_processing() is the script to be executed (arg #0), so the nzb filename should be in "nzo.filename". But it looks like the problem has something to do with the "Check before download" (pre-check) option in SABnzbd. If I disable that o...
by copico
June 5th, 2016, 12:44 pm
Forum: Post-Processing Scripts
Topic: Truncated NZB filename in post processing script
Replies: 8
Views: 6727

Re: Truncated NZB filename in post processing script

Could it have something to do with this function in SABnzbd? def trim_win_path(path): """ Make sure Windows path stays below 70 by trimming last part """ if sabnzbd.WIN32 and len(path) > 69: path, folder = os.path.split(path) maxlen = 69 - len(path) if len(folder) > max...
by copico
June 5th, 2016, 10:44 am
Forum: Post-Processing Scripts
Topic: Truncated NZB filename in post processing script
Replies: 8
Views: 6727

Re: Truncated NZB filename in post processing script

Something else odd... I just noticed SABnzbd itself creates two NZB backups, one with the long filename and one with the shortened filename: auto.Dame.of.Chromes.S06E06.720p.HDTV.x264-TOPKEK.nzb.gz auto.Dame.of.Chromes.S06E06.720p.H.nzb.gz auto.64.Hours.In.X.And.Y.S11E03.720p.HDTV.x264-C4TV.nzb.gz a...
by copico
June 4th, 2016, 1:25 pm
Forum: Post-Processing Scripts
Topic: Truncated NZB filename in post processing script
Replies: 8
Views: 6727

Re: Truncated NZB filename in post processing script

I tried you python script, with SABnzbd 1.0.2, on Ubuntu, and ... no truncating. See below. So ... isn't there a special chacter in your NZB filename? Can rename an existing NZB file to something long with only plain characters in it, and then try again? Thanks for testing! I wonder if it's a Windo...
by copico
June 3rd, 2016, 10:03 pm
Forum: Post-Processing Scripts
Topic: Truncated NZB filename in post processing script
Replies: 8
Views: 6727

Re: Truncated NZB filename in post processing script

Truncated? You mean the ".nzb" part has been removed? The part before the .nzb in the filename is truncated. For example, in the above, this is the real filename of the nzb: auto.Mop.Bear.US.S08E06.American.Aftermarket.720p.HDTV.x264-DHD.nzb But during the post-processing the script gets ...
by copico
May 25th, 2016, 11:26 am
Forum: Post-Processing Scripts
Topic: Truncated NZB filename in post processing script
Replies: 8
Views: 6727

Truncated NZB filename in post processing script

In SABnzbd's (v1.0.2) history list GUI, I see that the NZB "source" field has the correct filename: Source auto.Mop.Bear.US.S08E06.American.Aftermarket.720p.HDTV.x264-DHD.nzb But in my post processing script, I see the NZB filename is truncated: Python: print('argv: %s\n' %(', '.join(sys.a...
by copico
May 15th, 2011, 8:56 am
Forum: Templates
Topic: How to add connection info in simpl?
Replies: 2
Views: 4142

Re: How to add connection info in simpl?

Thanks for the info. I was hoping it was just something simple I had missed to do... I don't know Python unfortunately.
by copico
May 12th, 2011, 3:58 pm
Forum: Templates
Topic: How to add connection info in simpl?
Replies: 2
Views: 4142

How to add connection info in simpl?

I'm trying to mod simpl for my own use, to add the connection/server info in the footer, but I get the following: Traceback (most recent call last):  File "cherrypy\_cprequest.pyo", line 618, in respond  File "cherrypy\_cpdispatch.pyo", line 25, in __call__  File "sabnzbd\in...