From 90be81bc373b26be2a224206c6ab708c0873d4de Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 9 Jun 2012 22:45:01 +0200 Subject: [PATCH] User agent missing for nzbmatrix. fix #388 --- couchpotato/core/providers/nzb/nzbmatrix/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/providers/nzb/nzbmatrix/main.py b/couchpotato/core/providers/nzb/nzbmatrix/main.py index b512790d..816b8e1a 100644 --- a/couchpotato/core/providers/nzb/nzbmatrix/main.py +++ b/couchpotato/core/providers/nzb/nzbmatrix/main.py @@ -99,6 +99,9 @@ class NZBMatrix(NZBProvider, RSS): return results + def download(self, url = '', nzb_id = ''): + return self.urlopen(url, headers = {'User-Agent': Env.getIdentifier()}) + def getApiExt(self): return '&username=%s&apikey=%s' % (self.conf('username'), self.conf('api_key'))