diff --git a/CHANGES.md b/CHANGES.md index a972d453..73547cfd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,11 @@ +### 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]