From 0039a93736c3f01cd15c373317d723431bea5e0e Mon Sep 17 00:00:00 2001 From: rembo10 Date: Fri, 17 Aug 2012 00:28:56 +0530 Subject: [PATCH] Accidentally removed marking albums as Downloaded after being post processed --- headphones/postprocessor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 3c855494..cd7fcadc 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -269,6 +269,10 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list) logger.error('No DESTINATION_DIR has been set. Set "Destination Directory" to the parent directory you want to move the files to') pass + myDB = db.DBConnection() + myDB.action('UPDATE albums SET status = "Downloaded" WHERE AlbumID=?', [albumid]) + myDB.action('UPDATE snatched SET status = "Processed" WHERE AlbumID=?', [albumid]) + # Update the have tracks librarysync.libraryScan(dir=albumpath, append=True, ArtistID=release['ArtistID'], ArtistName=release['ArtistName'])