diff options
author | Remita Amine <remitamine@gmail.com> | 2019-11-06 07:18:29 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2019-11-06 07:18:29 +0100 |
commit | 3ec86619e33a3d1e29c14ec053d7e420ac8b62ae (patch) | |
tree | ab5cb7f19941857263b968f5b8a7769722a7d33c /youtube_dl/extractor/common.py | |
parent | 57033e35e58e1d57ab3be5ffe5df5a80a5dbcf83 (diff) |
[common] initialize headers param with empty dict
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 1e6b66d25..4a683f6d6 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1586,7 +1586,7 @@ class InfoExtractor(object): def _extract_m3u8_formats(self, m3u8_url, video_id, ext=None, entry_protocol='m3u8', preference=None, m3u8_id=None, note=None, errnote=None, - fatal=True, live=False, headers=None): + fatal=True, live=False, headers={}): res = self._download_webpage_handle( m3u8_url, video_id, note=note or 'Downloading m3u8 information', @@ -2009,7 +2009,7 @@ class InfoExtractor(object): }) return entries - def _extract_mpd_formats(self, mpd_url, video_id, mpd_id=None, note=None, errnote=None, fatal=True, formats_dict={}, headers=None): + def _extract_mpd_formats(self, mpd_url, video_id, mpd_id=None, note=None, errnote=None, fatal=True, formats_dict={}, headers={}): res = self._download_xml_handle( mpd_url, video_id, note=note or 'Downloading MPD manifest', |