@@ -157,16 +157,16 @@ def list_associated_files(self, file_path, base_name_only=False):
157157 base_name = file_path .rpartition ('.' )[0 ]
158158
159159 if not base_name_only :
160- base_name = base_name + '.'
161-
160+ base_name = base_name + '.'
161+
162162 # don't strip it all and use cwd by accident
163163 if not base_name :
164164 return []
165165
166166 # don't confuse glob with chars we didn't mean to use
167167 base_name = re .sub (r'[\[\]\*\?]' , r'[\g<0>]' , base_name )
168168
169- for associated_file_path in ek .ek (glob .glob , base_name + '*' ):
169+ for associated_file_path in ek .ek (glob .glob , base_name + '*' ):
170170 # only add associated to list
171171 if associated_file_path == file_path :
172172 continue
@@ -228,23 +228,23 @@ def _combined_file_operation(self, file_path, new_path, new_base_name, associate
228228 self ._log (u"There were no files associated with " + file_path + ", not moving anything" , logger .DEBUG )
229229 return
230230
231- # create base name with file_path (media_file without .extension)
232- old_base_name = file_path .rpartition ('.' )[0 ]
233- old_base_name_length = len (old_base_name )
234-
231+ # create base name with file_path (media_file without .extension)
232+ old_base_name = file_path .rpartition ('.' )[0 ]
233+ old_base_name_length = len (old_base_name )
234+
235235 # deal with all files
236236 for cur_file_path in file_list :
237237 cur_file_name = ek .ek (os .path .basename , cur_file_path )
238- # get the extension without .
239- cur_extension = cur_file_path [old_base_name_length + 1 :]
238+ # get the extension without .
239+ cur_extension = cur_file_path [old_base_name_length + 1 :]
240240
241241 # replace .nfo with .nfo-orig to avoid conflicts
242242 if cur_extension == 'nfo' :
243243 cur_extension = 'nfo-orig'
244244
245245 # If new base name then convert name
246246 if new_base_name :
247- new_file_name = new_base_name + '.' + cur_extension
247+ new_file_name = new_base_name + '.' + cur_extension
248248 # if we're not renaming we still want to change extensions sometimes
249249 else :
250250 new_file_name = helpers .replaceExtension (cur_file_name , cur_extension )
@@ -709,13 +709,13 @@ def process(self):
709709
710710 self ._log (u"Processing " + self .file_path + " (" + str (self .nzb_name ) + ")" )
711711
712- if ek .ek (os .path .isdir , self .file_path ):
713- self ._log (u"File " + self .file_path + " seems to be a directory" )
714- return False
715- for ignore_file in self .IGNORED_FILESTRINGS :
716- if ignore_file in self .file_path :
717- self ._log (u"File " + self .file_path + " is ignored type, skipping" )
718- return False
712+ if ek .ek (os .path .isdir , self .file_path ):
713+ self ._log (u"File " + self .file_path + " seems to be a directory" )
714+ return False
715+ for ignore_file in self .IGNORED_FILESTRINGS :
716+ if ignore_file in self .file_path :
717+ self ._log (u"File " + self .file_path + " is ignored type, skipping" )
718+ return False
719719 # reset per-file stuff
720720 self .in_history = False
721721
@@ -863,10 +863,10 @@ def process(self):
863863 ep_obj .createMetaFiles ()
864864 ep_obj .saveToDB ()
865865
866- # do the library update for XBMC
866+ # do the library update for XBMC
867867 notifiers .xbmc_notifier .update_library (ep_obj .show .name )
868868
869- # do the library update for Plex
869+ # do the library update for Plex
870870 notifiers .plex_notifier .update_library ()
871871
872872 # do the library update for NMJ
@@ -877,8 +877,8 @@ def process(self):
877877
878878 # do the library update for pyTivo
879879 notifiers .pytivo_notifier .update_library (ep_obj )
880-
881- # do the library update for Trakt
880+
881+ # do the library update for Trakt
882882 notifiers .trakt_notifier .update_library (ep_obj )
883883
884884 self ._run_extra_scripts (ep_obj )
0 commit comments