[common] Remove unused arguments
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 30 Jan 2016 14:45:16 +0000 (22:45 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 30 Jan 2016 14:45:16 +0000 (22:45 +0800)
youtube_dl/extractor/common.py
youtube_dl/extractor/facebook.py
youtube_dl/extractor/youtube.py

index a05efec9ef87e8eb4fe3c8c09bc39cd90ef232bf..5a2b7a7219ab2070bd997803478dbbae8a55554f 100644 (file)
@@ -1330,7 +1330,7 @@ class InfoExtractor(object):
             })
         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):
             return self._xpath_ns(path, namespace)
 
index af38eaff1eda5fd2798789415614971e7c501bb2..bd65e43f2b556f1b26f792817060d8d98a8b44a0 100644 (file)
@@ -215,7 +215,7 @@ class FacebookIE(InfoExtractor):
             dash_manifest = f[0].get('dash_manifest')
             if 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'))
         if not formats:
             raise ExtractorError('Cannot find video formats')
index 8d3fcfa5f7ebace20248ee85c9d9dfb74ce910c4..a2f7760502d3771335fdc88496e443ed67f6ea2b 100644 (file)
@@ -1479,7 +1479,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                         fatal=dash_mpd_fatal)
 
                     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
                         if df['format_id'] not in dash_formats:
                             dash_formats[df['format_id']] = df