]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/common] Relax _hidden_inputs
authorSergey M․ <dstftw@gmail.com>
Fri, 8 Apr 2016 17:33:45 +0000 (23:33 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 8 Apr 2016 17:33:45 +0000 (23:33 +0600)
youtube_dl/extractor/common.py

index a7324af5cf8e8b302758440a577ae02e23a8faa3..17d00721caad1a82f93a82458d0efdd40697abcd 100644 (file)
@@ -843,7 +843,7 @@ class InfoExtractor(object):
         for input in re.findall(r'(?i)<input([^>]+)>', html):
             if not re.search(r'type=(["\'])(?:hidden|submit)\1', input):
                 continue
-            name = re.search(r'name=(["\'])(?P<value>.+?)\1', input)
+            name = re.search(r'(?:name|id)=(["\'])(?P<value>.+?)\1', input)
             if not name:
                 continue
             value = re.search(r'value=(["\'])(?P<value>.*?)\1', input)