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
+2 -1
View File
@@ -3,13 +3,14 @@ from couchpotato.core.event import addEvent
from couchpotato.core.helpers.request import jsonified
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.environment import Env
log = CPLog(__name__)
class Notification(Plugin):
default_title = 'CouchPotato'
default_title = Env.get('appname')
test_message = 'ZOMG Lazors Pewpewpew!'
listen_to = ['movie.downloaded', 'movie.snatched', 'updater.available']
+2 -1
View File
@@ -1,6 +1,7 @@
from couchpotato.core.event import fireEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
from couchpotato.environment import Env
from gntp import notifier
import logging
import traceback
@@ -29,7 +30,7 @@ class Growl(Notification):
port = self.conf('port')
self.growl = notifier.GrowlNotifier(
applicationName = 'CouchPotato',
applicationName = Env.get('appname'),
notifications = ["Updates"],
defaultNotifications = ["Updates"],
applicationIcon = '%s/static/images/couch.png' % fireEvent('app.api_url', single = True),