Private GIT

Skip to content
Snippets Groups Projects
Commit f3a3972e authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Add maxage support to the NZBMatrix provider

parent 0a82cd67
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class NZBMatrixProvider(generic.NZBProvider):
term = "\""+term+"\""
params = {"term": term,
"age": sickbeard.USENET_RETENTION,
"maxage": sickbeard.USENET_RETENTION,
"page": "download",
"username": sickbeard.NZBMATRIX_USERNAME,
"apikey": sickbeard.NZBMATRIX_APIKEY,
......@@ -74,6 +74,10 @@ class NZBMatrixProvider(generic.NZBProvider):
"ssl": 1,
"scenename": 1}
# don't allow it to be missing
if not params['maxage']:
params['maxage'] = '0'
# if the show is a documentary use those cats on nzbmatrix
if show and show.genre and 'documentary' in show.genre.lower():
params['subcat'] = params['subcat'] + ',53,9'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment