mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-11 06:09:29 +01:00
Fixed bug where marking albums as skipped/downloaded in bulk resulted in them being marked as wanted
This commit is contained in:
@@ -149,11 +149,12 @@ class WebInterface(object):
|
||||
|
||||
def markAlbums(self, ArtistID=None, action=None, **args):
|
||||
myDB = db.DBConnection()
|
||||
if action == 'WantedNew' or 'WantedLossless':
|
||||
if action == 'WantedNew' or action == 'WantedLossless':
|
||||
newaction = 'Wanted'
|
||||
else:
|
||||
newaction = action
|
||||
for mbid in args:
|
||||
logger.info("Marking %s as %s" % (mbid, newaction))
|
||||
controlValueDict = {'AlbumID': mbid}
|
||||
newValueDict = {'Status': newaction}
|
||||
myDB.upsert("albums", newValueDict, controlValueDict)
|
||||
|
||||
Reference in New Issue
Block a user