From: Sergey M․ Date: Fri, 10 Jul 2015 15:57:29 +0000 (+0600) Subject: [played] Use `_form_hidden_inputs` X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=01b89d5682adaecfd319897683b2043cfc7344c6;p=youtube-dl.git [played] Use `_form_hidden_inputs` --- diff --git a/youtube_dl/extractor/played.py b/youtube_dl/extractor/played.py index 45716c75d..9fe1524f2 100644 --- a/youtube_dl/extractor/played.py +++ b/youtube_dl/extractor/played.py @@ -38,9 +38,7 @@ class PlayedIE(InfoExtractor): if m_error: raise ExtractorError(m_error.group('msg'), expected=True) - fields = re.findall( - r'type="hidden" name="([^"]+)"\s+value="([^"]+)">', orig_webpage) - data = dict(fields) + data = self._form_hidden_inputs(orig_webpage) self._sleep(2, video_id)