From be0e5dbd8356e92f8032d4cf8be2e668f1b30539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 6 Sep 2015 07:20:47 +0600 Subject: [PATCH] [extractor/common] Extract submit inputs --- youtube_dl/extractor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 39cef9c5b..5eeeda08d 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -733,7 +733,7 @@ def _twitter_search_player(self, html): def _hidden_inputs(html): hidden_inputs = {} for input in re.findall(r']+)>', html): - if not re.search(r'type=(["\'])hidden\1', input): + if not re.search(r'type=(["\'])(?:hidden|submit)\1', input): continue name = re.search(r'name=(["\'])(?P.+?)\1', input) if not name: