Skip to content

Commit

Permalink
coursera: Remove trailing whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogério Brito committed Nov 5, 2013
1 parent 50aaa4b commit 48057e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coursera/coursera_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,19 +386,19 @@ def format_combine_number_resource(secnum, lecnum, lecname, title, fmt):
# if this file hasn't been modified in a long time,
# record that time
last_update = max(last_update, os.path.getmtime(lecfn))

# after fetching resources, create a playlist with the videos downloaded
if playlist:
path_to_return = os.getcwd()
for (_path, subdirs, files) in os.walk(sec):
os.chdir(_path)
os.chdir(_path)
if glob.glob("*.mp4") != []:
_m3u = open(os.path.split(_path)[1] + ".m3u" , "w")
for song in glob.glob("*.mp4"):
_m3u.write(song + "\n")
_m3u.close()
os.chdir(path_to_return)


if hooks:
for hook in hooks:
Expand Down

0 comments on commit 48057e9

Please sign in to comment.