From d09f2a22765ceb37be563d1c8dc6703baa7c805f Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 4 Jun 2014 00:34:35 -0700 Subject: [PATCH] Fix for scene numbering not being set properly during a mass edit --- sickbeard/webserve.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 6289df6b..b2e8e8c0 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -640,7 +640,7 @@ class Manage: return _munge(t) @cherrypy.expose - def massEditSubmit(self, paused=None, anime=None, flatten_folders=None, quality_preset=False, subtitles=None, + def massEditSubmit(self, paused=None, anime=None, scene=None, flatten_folders=None, quality_preset=False, subtitles=None, anyQualities=[], bestQualities=[], toEdit=None, *args, **kwargs): dir_map = {} @@ -680,6 +680,12 @@ class Manage: new_anime = True if anime == 'enable' else False new_anime = 'on' if new_anime else 'off' + if scene == 'keep': + new_scene = showObj.is_anime + else: + new_scene = True if scene == 'enable' else False + new_scene = 'on' if new_scene else 'off' + if flatten_folders == 'keep': new_flatten_folders = showObj.flatten_folders else: @@ -699,7 +705,8 @@ class Manage: exceptions_list = [] curErrors += Home().editShow(curShow, new_show_dir, anyQualities, bestQualities, exceptions_list, - new_flatten_folders, new_paused, subtitles=new_subtitles, anime=new_anime, directCall=True) + new_flatten_folders, new_paused, subtitles=new_subtitles, anime=new_anime, + scene=new_scene, directCall=True) if curErrors: logger.log(u"Errors: " + str(curErrors), logger.ERROR)