void-packages/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj...

47 lines
1.2 KiB
Diff
Raw Normal View History

2014-07-02 12:45:24 +02:00
--- a/sabnzbd/config.py
+++ b/sabnzbd/config.py
@@ -23,10 +23,12 @@ import os
import logging
import threading
import shutil
+
+import configobj
+
import sabnzbd.misc
from sabnzbd.constants import CONFIG_VERSION, NORMAL_PRIORITY, DEFAULT_PRIORITY
from sabnzbd.utils import listquote
-from sabnzbd.utils import configobj
from sabnzbd.decorators import synchronized
CONFIG_LOCK = threading.Lock()
--- a/sabnzbd/rss.py
+++ b/sabnzbd/rss.py
@@ -35,7 +35,7 @@ from sabnzbd.misc import cat_convert, sanitize_foldername, wildcard_to_re, cat_t
import sabnzbd.emailer as emailer
from sabnzbd.encoding import latin1, unicoder, xml_name
-import sabnzbd.utils.feedparser as feedparser
+import feedparser
__RSS = None # Global pointer to RSS-scanner instance
--- a/sabnzbd/growler.py
+++ b/sabnzbd/growler.py
@@ -31,7 +31,14 @@ import sabnzbd
import sabnzbd.cfg
from sabnzbd.encoding import unicoder, latin1
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