Add user-agent to newznab providers. closes #211

This commit is contained in:
Ruud
2012-05-05 10:00:25 +02:00
parent 7c18fc8787
commit 674f0e82b9
5 changed files with 13 additions and 4 deletions
+6
View File
@@ -5,6 +5,8 @@ import os
class Env(object):
_appname = 'CouchPotato'
''' Environment variables '''
_encoding = ''
_uses_git = False
@@ -96,3 +98,7 @@ class Env(object):
return '%d %s' % (os.getpid(), '(%d)' % parent if parent and parent > 1 else '')
except:
return 0
@staticmethod
def getIdentifier():
return '%s %s' % (Env.get('appname'), fireEvent('app.version', single = True))