From 272ecd0ab8241a6f37e2936f5cdfc742c225cd90 Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 4 Jun 2014 00:11:56 -0700 Subject: [PATCH] Fix for mass updating not actually changing any show options when editing --- sickbeard/webserve.py | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index fe356eff..cb8568c5 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -3211,7 +3211,7 @@ class Home: if directCall: do_update_exceptions = False else: - if directCall or set(exceptions_list) == set(showObj.exceptions): + if set(exceptions_list) == set(showObj.exceptions): do_update_exceptions = False else: do_update_exceptions = True @@ -3278,19 +3278,37 @@ class Home: except exceptions.CantRefreshException, e: errors.append("Unable to refresh this show: " + ex(e)) - showObj.paused = paused + if paused: + showObj.paused = paused - # if this routine was called via the mass edit, do not change the options that are not passed - if not directCall: + if air_by_date: showObj.air_by_date = air_by_date + + if scene: showObj.scene = scene + + if sports: showObj.sports = sports + + if anime: showObj.anime = anime + + if subtitles: showObj.subtitles = subtitles + + if indexer_lang: showObj.lang = indexer_lang + + if dvdorder: showObj.dvdorder = dvdorder + + if archive_firstmatch: showObj.archive_firstmatch = archive_firstmatch + + if rls_ignore_words: showObj.rls_ignore_words = rls_ignore_words.strip() + + if rls_require_words: showObj.rls_require_words = rls_require_words.strip() # if we change location clear the db of episodes, change it, write to db, and rescan