diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:57:29 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:57:29 +0600 |
commit | 01b89d5682adaecfd319897683b2043cfc7344c6 (patch) | |
tree | 25e624e771fd40a7b2d7dd4821d0f62418ca47a6 | |
parent | 46f0f500163f64ed8276466667d6733e036bfa2d (diff) |
[played] Use `_form_hidden_inputs`
-rw-r--r-- | youtube_dl/extractor/played.py | 4 |
1 files changed, 1 insertions, 3 deletions
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) |