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.
-
Arsenal
- Posts: 2
- Joined: 14 Apr 2014, 02:00
Post
by Arsenal » 14 Apr 2014, 02:38
So i've set NZBDrone to pass older files (14+ days) to NZBGet with very low Priority, and would like NZBGet to set these ones as Paused so i don't run the risk of inadvertently downloading gigs worth of archive files. From looking around it sounds as if i should be able to do this with NZBProcess or NZBAddedProcess, but i'm not really sure how?
Any tips would be much appreciated.
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 14 Apr 2014, 08:42
Yes, that's possible with NzbProcess:
I also suggest you to ask NzbDrone dev to add an option to send files in paused state (that should be easy for him, just a parameter in the "append" call).
-
Arsenal
- Posts: 2
- Joined: 14 Apr 2014, 02:00
Post
by Arsenal » 14 Apr 2014, 12:42
Thank you for this. Interesting that there is a flag that can be passed for things to be passed as Paused. I notice that Couchpotato doesn't give me the option to pause either, so i'd best suggest it to both of them.
-
jfeeser
- Posts: 2
- Joined: 28 May 2014, 17:33
Post
by jfeeser » 28 May 2014, 18:50
Apologies for resurrecting an old thread, but im interested in implementing the script you made here. I've gotten it to fire off when the NZBs are added to the queue, but every NZB that gets added throws the error below:
Code: Select all
Pause-Priority: Traceback (most recent call last):
INFO Pause-Priority: File "/home/jfeeser/nzbget/Pause-Priority.py", line 47, in <module>
INFO Pause-Priority: priority = int(os.environ['NZBNP_PRIORITY'])
INFO Pause-Priority: File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
INFO Pause-Priority: raise KeyError(key)
INFO Pause-Priority: KeyError: 'NZBNP_PRIORITY'
Any thoughts?
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 28 May 2014, 21:20
The script is for use in option NzbProcess, not NzbAddedProcess.
-
jfeeser
- Posts: 2
- Joined: 28 May 2014, 17:33
Post
by jfeeser » 29 May 2014, 12:58
Ha! Completely read the original directions wrong. Dropped it in the right spot and it worked like a charm. Thanks!
Who is online
Users browsing this forum: No registered users and 25 guests