Fix overwriting repack where renamed filename has '-' in title.

Change prevent overwriting release_name field with filename, if already set.
This commit is contained in:
Prinz23 2018-03-23 00:28:07 +01:00 committed by JackDandy
parent c74ed7a45f
commit c6e47a9bed

View file

@ -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)