cleanup after download or info_only

This commit is contained in:
Mort Yao 2014-06-24 12:49:04 +02:00
parent 1411c8986e
commit 5dbeb09daa

View File

@ -1022,6 +1022,7 @@ class VideoExtractor():
else: else:
# Display all available streams # Display all available streams
self.p([]) self.p([])
else: else:
if 'stream_id' in kwargs and kwargs['stream_id']: if 'stream_id' in kwargs and kwargs['stream_id']:
# Download the stream # Download the stream
@ -1040,4 +1041,4 @@ class VideoExtractor():
exit(1) exit(1)
download_urls(urls, self.title, self.streams[stream_id]['container'], self.streams[stream_id]['size'], output_dir=kwargs['output_dir'], merge=kwargs['merge']) download_urls(urls, self.title, self.streams[stream_id]['container'], self.streams[stream_id]['size'], output_dir=kwargs['output_dir'], merge=kwargs['merge'])
self.__init__() self.__init__()