default filename to save video is ID.EXT
This commit is contained in:
parent
17754719ef
commit
0524a8d97d
1 changed files with 7 additions and 4 deletions
|
|
@ -118,10 +118,13 @@ class Videoob(ReplApplication):
|
||||||
print >>sys.stderr, 'Please install "wget"'
|
print >>sys.stderr, 'Please install "wget"'
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
if dest is not None:
|
if dest is None:
|
||||||
os.system('wget %s -O %s' % (video.url, dest))
|
ext = video.ext
|
||||||
else:
|
if not ext:
|
||||||
os.system('wget %s' % (video.url))
|
ext = 'avi'
|
||||||
|
dest = '%s.%s' % (video.id, ext)
|
||||||
|
|
||||||
|
os.system('wget "%s" -O "%s"' % (video.url, dest))
|
||||||
|
|
||||||
def complete_play(self, text, line, *ignored):
|
def complete_play(self, text, line, *ignored):
|
||||||
args = line.split(' ')
|
args = line.split(' ')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue