Skip to content

Commit

Permalink
batch download support through csv added
Browse files Browse the repository at this point in the history
  • Loading branch information
praneetmehta committed Jun 23, 2017
1 parent afe5361 commit ec35faa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions FSMD.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,12 @@ def error(self, msg):
def my_hook(d):
global filename
if d['status'] == 'finished':
print "d['filename']",d['filename']
print filename[-4:]
if d['filename'][-4:] == 'webm':
# global filename
filename = d['filename'][:-4]+'mp3'
elif d['filename'][-4:] == '.m4a':
# global filename
filename = d['filename'][:-3]+'mp3'
print filename
print 'download complete, now downloading album art'
else:
print (d['downloaded_bytes']*100)//d['total_bytes'],'%','\t','eta:',d['eta'],'sec'
Expand Down

0 comments on commit ec35faa

Please sign in to comment.