diff --git a/mylar/rsscheck.py b/mylar/rsscheck.py index 61d1a198..b70f0e98 100755 --- a/mylar/rsscheck.py +++ b/mylar/rsscheck.py @@ -10,6 +10,7 @@ import ftpsshup import datetime import gzip import time +import random from StringIO import StringIO import mylar @@ -145,6 +146,9 @@ def torrents(pickfeed=None, seriesname=None, issue=None, feedinfo=None): if all([pickfeed != '4', pickfeed != '3', pickfeed != '5', pickfeed != '999']): payload = None +            ddos_protection = round(random.uniform(0,15),2) +            time.sleep(ddos_protection) + try: cf_cookievalue = None scraper = cfscrape.create_scraper()