Skip to content

YouTube

Options

ydl_opts = {
'outtmpl': '%(id)s/%(id)s.%(ext)s',
'playlistend': limit,
'ignoreerrors': True,
'format': 'bestvideo*+bestaudio/best',
'merge_output_format': 'mp4',
'quiet': True,
'cachedir': False,
'extract_flat': True,
}

Sources