Possible fix for IncompleteRead error when using NZBMatrix: Strip out leading 'The' in the search term which seems to cause it to hang

This commit is contained in:
rembo10
2012-04-28 14:32:02 +05:30
parent 298463a01d
commit 6bd762d9b6

View File

@@ -149,6 +149,13 @@ def searchNZB(albumid=None, new=False, losslessOnly=False):
else:
categories = "22"
maxsize = 300000000
# For some reason NZBMatrix is erroring out/timing out when the term starts with a "The" right now
# so we'll strip it out for the time being. This may get fixed on their end, it may not, but
# hopefully this will fix it for now. If you notice anything else it gets stuck on, please post it
# on Github so it can be added
if term.lower().startswith("the "):
term = term[4:]
params = { "page": "download",