minor bugfix

master
joshua 7 years ago
parent d4f0580b49
commit 698243f547

@ -11,6 +11,7 @@ from os.path import join
elif platform == "win32": elif platform == "win32":
from ballonNotify import Notification''' from ballonNotify import Notification'''
from notifications import Notification from notifications import Notification
from pushbullet import Pushbullet
from optparse import OptionParser from optparse import OptionParser
from ConfigParser import ConfigParser from ConfigParser import ConfigParser
@ -54,8 +55,6 @@ def main(options):
regex = re.compile("Added (?:.*/)?(.*)-.* to library with id \d*") regex = re.compile("Added (?:.*/)?(.*)-.* to library with id \d*")
searcher = regex.search searcher = regex.search
stripper = False stripper = False
if options.pushbullet:
from pushbullet import Pushbullet
for line in buf.readlines(): for line in buf.readlines():
r = searcher(line) r = searcher(line)
if r: if r:

Loading…
Cancel
Save