mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-08 11:03:38 +00:00
Naming pattern issues resolved.
This commit is contained in:
parent
bc05a9f6fa
commit
ac7198a852
1 changed files with 1 additions and 4 deletions
|
@ -2058,10 +2058,7 @@ class TVEpisode(object):
|
||||||
# split off the dirs only, if they exist
|
# split off the dirs only, if they exist
|
||||||
name_groups = re.split(r'[\\/]', pattern)
|
name_groups = re.split(r'[\\/]', pattern)
|
||||||
|
|
||||||
if len(name_groups) == 1:
|
return self._format_pattern(name_groups[-1], multi)
|
||||||
return ''
|
|
||||||
else:
|
|
||||||
return self._format_pattern(os.sep.join(name_groups[:-1]), multi)
|
|
||||||
|
|
||||||
def rename(self):
|
def rename(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue