mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fix Renaming issue for not PROPER release generating two dot in filename
This commit is contained in:
parent
27fb9e3228
commit
e5a59afbd4
@ -1904,6 +1904,9 @@ class TVEpisode(object):
|
|||||||
result_name = result_name.replace('%rg', 'sickbeard')
|
result_name = result_name.replace('%rg', 'sickbeard')
|
||||||
logger.log(u"Episode has no release name, replacing it with a generic one: " + result_name, logger.DEBUG)
|
logger.log(u"Episode has no release name, replacing it with a generic one: " + result_name, logger.DEBUG)
|
||||||
|
|
||||||
|
if not replace_map['%RT']:
|
||||||
|
result_name = re.sub('([ _.-]*)%RT([ _.-]*)', r'\2', result_name)
|
||||||
|
|
||||||
# split off ep name part only
|
# split off ep name part only
|
||||||
name_groups = re.split(r'[\\/]', result_name)
|
name_groups = re.split(r'[\\/]', result_name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user