def download_chunks(base_url, manifest, stream_index, quality_level, dest_dir):
def download_chunks(base_url, manifest, stream_index, quality_level, dest_dir):
stream = manifest.findall('.//StreamIndex')[stream_index]
chunks_quality = get_chunk_quality_string(stream, quality_level)
stream = manifest.findall('.//StreamIndex')[stream_index]
chunks_quality = get_chunk_quality_string(stream, quality_level)
-def smooth_download(url, manifest, dest_dir=tempfile.gettempdir(),
+def smooth_download(url, manifest, dest_dir,
video_stream_index=0, audio_stream_index=1,
video_quality_level=0, audio_quality_level=0,
chunks_dir=None, download=True,
video_stream_index=0, audio_stream_index=1,
video_quality_level=0, audio_quality_level=0,
chunks_dir=None, download=True,