Page 1 of 1
RSS add paused
Posted: January 17th, 2011, 10:02 pm
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
Re: RSS add paused
Posted: January 18th, 2011, 3:01 am
by shypike
Will be in release 0.6.0
Re: RSS add paused
Posted: January 21st, 2011, 12:59 pm
by cmg
Is there a test version available for download anywhere (Windows 7 64)?
Re: RSS add paused
Posted: January 21st, 2011, 2:40 pm
by shypike
There will be a public Beta shortly.
Re: RSS add paused
Posted: August 18th, 2011, 11:34 am
by Andkj
I were about to submit a max size request for RSS downloads.
- where is the limit/"paused if greater than" you mentioned?
Re: RSS add paused
Posted: August 18th, 2011, 3:10 pm
by shypike
That's a "secret" option, in that it's not in the user interface.
See:
http://wiki.sabnzbd.org/configure-special
Re: RSS add paused
Posted: August 19th, 2011, 2:56 pm
by Andkj
thank you.
Re: RSS add paused
Posted: October 5th, 2011, 3:55 am
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.
Re: RSS add paused
Posted: October 5th, 2011, 4:48 am
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)