mirror of
https://github.com/evilhero/mylar
synced 2024-12-26 09:36:53 +00:00
FIX:(1564) Fake the RSS Feed generation for nzbhydra so it can poll against the last 100 entries via api, instead of rss query
This commit is contained in:
parent
8891088b4d
commit
e10b2b7b9b
1 changed files with 6 additions and 2 deletions
|
@ -360,8 +360,12 @@ def nzbs(provider=None, forcerss=False):
|
|||
newznabuid = newznabuid or '1'
|
||||
newznabcat = newznabcat or '7030'
|
||||
|
||||
# 11-21-2014: added &num=100 to return 100 results (or maximum) - unsure of cross-reliablity
|
||||
_parse_feed(site, newznab_host[1].rstrip() + '/rss?t=' + str(newznabcat) + '&dl=1&i=' + str(newznabuid) + '&num=100&r=' + newznab_host[3].rstrip(), bool(newznab_host[2]))
|
||||
if site[-10:] == '[nzbhydra]':
|
||||
#to allow nzbhydra to do category search by most recent (ie. rss)
|
||||
_parse_feed(site, newznab_host[1].rstrip() + '/api?t=search&cat=' + str(newznabcat) + '&dl=1&i=' + str(newznabuid) + '&num=100&apikey=' + newznab_host[3].rstrip(), bool(newznab_host[2]))
|
||||
else:
|
||||
# 11-21-2014: added &num=100 to return 100 results (or maximum) - unsure of cross-reliablity
|
||||
_parse_feed(site, newznab_host[1].rstrip() + '/rss?t=' + str(newznabcat) + '&dl=1&i=' + str(newznabuid) + '&num=100&r=' + newznab_host[3].rstrip(), bool(newznab_host[2]))
|
||||
|
||||
feeddata = []
|
||||
|
||||
|
|
Loading…
Reference in a new issue