Skip to content

Commit

Permalink
cosmetics, spaces vs Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
amet authored and jrhames committed Feb 7, 2011
1 parent 98e0e32 commit 37143bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script.xbmc.subtitles/resources/lib/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,12 @@ def Download_Subtitles( self, pos ):
file_name = "%s.%s%s" % ( sub_name, sub_lang, sub_ext )
else:
file_name = "%s%s" % ( sub_name, sub_ext )

file_from = os.path.join(self.tmp_sub_dir, "zipsubs.zip").replace('\\','/')
file_to = os.path.join(self.sub_folder, file_name).replace('\\','/')
try:
shutil.copyfile(file_from, file_to)
shutil.copyfile(file_from, file_to)
except IOError, e:
log( __name__ ,"Error: [%s]" % (e,) )
log( __name__ ,"Error: [%s]" % (e,) )
xbmc.Player().setSubtitles(file_to)
self.rem_files(self.tmp_sub_dir)
self.exit_script()
Expand Down

0 comments on commit 37143bd

Please sign in to comment.