mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
[common] Remove unused arguments
This commit is contained in:
parent
16f38a699f
commit
c94678957f
3 changed files with 3 additions and 3 deletions
|
@ -1330,7 +1330,7 @@ class InfoExtractor(object):
|
||||||
})
|
})
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
def _parse_dash_manifest(self, video_id, dash_doc, namespace=None, formats_dict={}, fatal=True):
|
def _parse_dash_manifest(self, dash_doc, namespace=None, formats_dict={}):
|
||||||
def _add_ns(path):
|
def _add_ns(path):
|
||||||
return self._xpath_ns(path, namespace)
|
return self._xpath_ns(path, namespace)
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,7 @@ class FacebookIE(InfoExtractor):
|
||||||
dash_manifest = f[0].get('dash_manifest')
|
dash_manifest = f[0].get('dash_manifest')
|
||||||
if dash_manifest:
|
if dash_manifest:
|
||||||
formats.extend(self._parse_dash_manifest(
|
formats.extend(self._parse_dash_manifest(
|
||||||
video_id, compat_etree_fromstring(compat_urllib_parse_unquote_plus(dash_manifest)),
|
compat_etree_fromstring(compat_urllib_parse_unquote_plus(dash_manifest)),
|
||||||
namespace='urn:mpeg:dash:schema:mpd:2011'))
|
namespace='urn:mpeg:dash:schema:mpd:2011'))
|
||||||
if not formats:
|
if not formats:
|
||||||
raise ExtractorError('Cannot find video formats')
|
raise ExtractorError('Cannot find video formats')
|
||||||
|
|
|
@ -1479,7 +1479,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
fatal=dash_mpd_fatal)
|
fatal=dash_mpd_fatal)
|
||||||
|
|
||||||
for df in self._parse_dash_manifest(
|
for df in self._parse_dash_manifest(
|
||||||
video_id, dash_doc, namespace='urn:mpeg:DASH:schema:MPD:2011', formats_dict=self._formats, fatal=dash_mpd_fatal):
|
dash_doc, namespace='urn:mpeg:DASH:schema:MPD:2011', formats_dict=self._formats):
|
||||||
# Do not overwrite DASH format found in some previous DASH manifest
|
# Do not overwrite DASH format found in some previous DASH manifest
|
||||||
if df['format_id'] not in dash_formats:
|
if df['format_id'] not in dash_formats:
|
||||||
dash_formats[df['format_id']] = df
|
dash_formats[df['format_id']] = df
|
||||||
|
|
Loading…
Reference in a new issue