diff --git a/sickbeard/postProcessor.py b/sickbeard/postProcessor.py index 58cc2e7fce4b67ee97e05afa2cb48866cea6514f..daa6951a9df40bc6cf252b702cfaf7125001852e 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