summaryrefslogtreecommitdiff
blob: 845ab15e8e639887209db5b49e16cc70142986ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 14eabdcd495be61bb14ecc8152058f92bd71a2db Mon Sep 17 00:00:00 2001
From: Justin Bronder <jsbronder@gmail.com>
Date: Mon, 24 Jun 2013 19:03:17 -0400
Subject: [PATCH 2/4] growler: support >=gntp-1.0

Fixes Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=474540
---
 sabnzbd/growler.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sabnzbd/growler.py b/sabnzbd/growler.py
index 34d73c4..cd1ce91 100644
--- a/sabnzbd/growler.py
+++ b/sabnzbd/growler.py
@@ -37,7 +37,12 @@ import sabnzbd.cfg
 from sabnzbd.encoding import unicoder
 from sabnzbd.constants import NOTIFY_KEYS
 
-from gntp import GNTPRegister
+try:
+    # <= version 0.6
+    from gntp import GNTPRegister
+except ImportError:
+    # >= version 1.0
+    from gntp.core import GNTPRegister
 from gntp.notifier import GrowlNotifier
 try:
     import Growl
-- 
2.4.10