From c6e47a9bedf3abe953f81fb521c7d79f575a66ca Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Fri, 23 Mar 2018 00:28:07 +0100 Subject: [PATCH] Fix overwriting repack where renamed filename has '-' in title. Change prevent overwriting release_name field with filename, if already set. --- sickbeard/tv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/tv.py b/sickbeard/tv.py index 5ec4a8bb..6957bfb9 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -557,7 +557,7 @@ class TVShow(object): except (InvalidNameException, InvalidShowException): pass - if ep_file_name and parse_result and None is not parse_result.release_group: + if ep_file_name and parse_result and None is not parse_result.release_group and not curEpisode.release_name: logger.log( 'Name %s gave release group of %s, seems valid' % (ep_file_name ,parse_result.release_group), logger.DEBUG)