From: Sergey M․ Date: Fri, 10 Jul 2015 15:49:09 +0000 (+0600) Subject: [extractor/common] Add method for extracting form hidden input fields as dict X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=27713812a093ddfb329cd9cead878f3d0bf629cf;p=youtube-dl [extractor/common] Add method for extracting form hidden input fields as dict --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index d859aea52..82f5de2d8 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -705,6 +705,12 @@ class InfoExtractor(object): return self._html_search_meta('twitter:player', html, 'twitter card player') + @staticmethod + def _form_hidden_inputs(html): + return dict(re.findall( + r'