diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 05826609..3f9519cb 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -93,6 +93,12 @@ class Plugin(object): socket.setdefaulttimeout(timeout) + # Fill in some headers + if not headers.get('Referer'): + headers['Referer'] = urlparse(url).hostname + if not headers.get('User-Agent'): + headers['User-Agent'] = '' + host = urlparse(url).hostname self.wait(host)