Scheduling part 2

Remove job if interval changed to 0

Plus, fixup os x notify registering not working with yosemite and also
show album image in notification
This commit is contained in:
Ade
2015-01-27 12:21:47 +13:00
parent fdc5078a85
commit 37d9cf11c3
5 changed files with 48 additions and 30 deletions
+5 -1
View File
@@ -488,11 +488,15 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list,
twitter.notify_download(pushmessage)
if headphones.CONFIG.OSX_NOTIFY_ENABLED:
from headphones import cache
c = cache.Cache()
album_art = c.get_artwork_from_cache(None, release['AlbumID'])
logger.info(u"Sending OS X notification")
osx_notify = notifiers.OSX_NOTIFY()
osx_notify.notify(release['ArtistName'],
release['AlbumTitle'],
statusmessage)
statusmessage,
image=album_art)
if headphones.CONFIG.BOXCAR_ENABLED:
logger.info(u"Sending Boxcar2 notification")