From ac7198a852894130f655e3a4a56f8d09ed9975bb Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 8 May 2014 11:10:22 -0700 Subject: [PATCH] Naming pattern issues resolved. --- sickbeard/tv.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sickbeard/tv.py b/sickbeard/tv.py index 34153684..56b015bd 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -2058,10 +2058,7 @@ class TVEpisode(object): # split off the dirs only, if they exist name_groups = re.split(r'[\\/]', pattern) - if len(name_groups) == 1: - return '' - else: - return self._format_pattern(os.sep.join(name_groups[:-1]), multi) + return self._format_pattern(name_groups[-1], multi) def rename(self): """