RSS add paused

Want something added? Ask for it here.
Post Reply
cmg
Newbie
Newbie
Posts: 28
Joined: November 2nd, 2010, 9:09 pm

RSS add paused

Post by cmg »

I know a size limit can be set so that everything above the limit will be added paused but I think it would be nice to have an option by RSS feed the choose for all of its items, regardless of size, be added in a paused state. I did a quick search and did not see this as a request or in the wish list/ blueprints.

Thanks,
CG
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: RSS add paused

Post by shypike »

Will be in release 0.6.0
cmg
Newbie
Newbie
Posts: 28
Joined: November 2nd, 2010, 9:09 pm

Re: RSS add paused

Post by cmg »

Is there a test version available for download anywhere (Windows  7 64)?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: RSS add paused

Post by shypike »

There will be a public Beta shortly.
Andkj
Newbie
Newbie
Posts: 12
Joined: August 18th, 2011, 11:25 am

Re: RSS add paused

Post by Andkj »

I were about to submit a max size request for RSS downloads.
- where is the limit/"paused if greater than" you mentioned?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: RSS add paused

Post by shypike »

That's a "secret" option, in that it's not in the user interface.
See: http://wiki.sabnzbd.org/configure-special
Andkj
Newbie
Newbie
Posts: 12
Joined: August 18th, 2011, 11:25 am

Re: RSS add paused

Post by Andkj »

thank you.
sfinx
Newbie
Newbie
Posts: 2
Joined: October 5th, 2011, 3:53 am

Re: RSS add paused

Post by sfinx »

Would it be possible to apply this file limit *only* to NZB's added via the RSS feeds? If I manually add a big file I don't want it to be paused.
sfinx
Newbie
Newbie
Posts: 2
Joined: October 5th, 2011, 3:53 am

Re: RSS add paused

Post by sfinx »

In the meantime, this little pre-queue Python script lets you set a max filesize per category.

Code: Select all

#!/usr/bin/python
#
# Parameters passed to this scripts
#
# 1 : Name of the NZB (no path, no ".nzb")
# 2 : PP (0, 1, 2 or 3)
# 3 : Category
# 4 : Script (no path)
# 5 : Priority (-100, -1, 0 or 1 meaning Default, Low, Normal, High)
# 6 : Size of the download (in bytes)
# 7 : Group list (separated by spaces)
# 8 : Show name
# 9 : Season (1..99)
# 10 : Episode (1..99)
# 11: Episode name
#
# Example of sys.argv
#
# ['/home/sabnzbd/.sabnzbd/scripts/prequeue.py', 'Ringer S01E04 HDTV XviD LOL', '', 'series-mobile', 'series-clean.pl', '-100', '398425985', 'alt.binaries.multimedia alt.binaries.teevee', 'Ringer', '1', '4', 'HDTV XviD LOL']
#
import sys,os

# field indexes
CATEGORY = 3
FILESIZE = 6

# config
sizeLimit = {}
sizeLimit['series'] 	    = 3221225472	# 3 gigabyte
sizeLimit['series-mobile'] = 1073741824	# 1 gigabyte

#
# Script output
#
# 1 : 0=Refuse, 1=Accept
# 2 : Name of the NZB (no path, no ".nzb")
# 3 : PP (0, 1, 2 or 3)
# 4 : Category
# 5 : Script (basename)
# 6 : Priority (-100 -2, -1, 0 or 1, meaning Default, Paused, Low, Normal, High )
# 7 : Group to be used (in case your provider doesn't carry all groups and there are multiple groups in the NZB)
#
def printOutput(run):
	print "1"
	print "" 
	print "" 
	print "" 
	print ""	
	if (run):
		print "-100" 
	else:
		print "-2"
	print ""	

if __name__ == "__main__":
	if (len(sys.argv) >= 12):
		run = True
		category = sys.argv[CATEGORY]
		if category in sizeLimit:
			filesize = int(sys.argv[FILESIZE])
			maxFilesize = sizeLimit[category]
			run = filesize < maxFilesize

		printOutput(run)
Post Reply