From 490d8603c3dd8052c09436ffbd69727a9d62e27e Mon Sep 17 00:00:00 2001 From: Luca <l.dimarino@gmail.com> Date: Wed, 22 May 2013 11:04:43 +0200 Subject: [PATCH] Code Cleanup --- sickbeard/postProcessor.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sickbeard/postProcessor.py b/sickbeard/postProcessor.py index 58cc2e7fc..daa6951a9 100644 --- a/sickbeard/postProcessor.py +++ b/sickbeard/postProcessor.py @@ -153,11 +153,6 @@ class PostProcessor(object): if not file_path: return [] -# if file_path != self.file_path: -# associated_dir = os.path.dirname(file_path) -# associated_fname = os.path.basename(self.file_path) -# file_path = os.path.join(associated_dir, associated_fname) - file_path_list = [] base_name = file_path.rpartition('.')[0]+'.' @@ -253,12 +248,10 @@ class PostProcessor(object): cur_file_name = ek.ek(os.path.basename, cur_file_path) # get the extension -# cur_extension = cur_file_path.rpartition('.')[-1] cur_extension = ek.ek(os.path.splitext, cur_file_path)[1][1:] # check if file have subtitles language if cur_extension in common.subtitleExtensions: -# cur_lang = cur_file_path.rpartition('.')[0].rpartition('.')[-1] cur_lang = ek.ek(os.path.splitext, ek.ek(os.path.splitext, cur_file_path)[0])[1][1:] if cur_lang in sickbeard.SUBTITLES_LANGUAGES: cur_extension = cur_lang + '.' + cur_extension -- GitLab