From a88696e421273e7c75876c22bb739306de151ef1 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 1 May 2018 18:05:57 +0100 Subject: [PATCH] Change use copy of showObj for UI to preserve original object structs. --- CHANGES.md | 7 ++++++- sickbeard/webserve.py | 6 ++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 37e36ab3..560e5aef 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.16.1 (2018-05-01 13:20:00 UTC) +### 0.16.2 (2018-05-02 00:25:00 UTC) + +* Change use copy of showObj for UI to preserve original object structs + + +### 0.16.1 (2018-05-01 13:20:00 UTC) * Fix IMDb links to older shows on displayshow and editshow page diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 28e828a9..d19b97ee 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -1801,7 +1801,8 @@ class Home(MainHandler): t.submenu.append( {'title': 'Download Subtitles', 'path': 'home/subtitleShow?show=%d' % showObj.indexerid}) - t.show = showObj + import copy + t.show = copy.deepcopy(showObj) self.fix_imdb_id(t.show) with BS4Parser('%s' % showObj.overview, features=['html5lib', 'permissive']) as soup: try: @@ -2232,7 +2233,8 @@ class Home(MainHandler): t.groups.append(dict([('name', 'Did not initialise AniDB. Check debug log if reqd.'), ('rating', ''), ('range', '')])) with showObj.lock: - t.show = showObj + import copy + t.show = copy.deepcopy(showObj) self.fix_imdb_id(t.show) t.show_has_scene_map = showObj.indexerid in sickbeard.scene_exceptions.xem_ids_list[showObj.indexer]