aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/played.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/played.py')
-rw-r--r--youtube_dl/extractor/played.py4
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)