]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/played.py
debian/control: Prefer ffmpeg to libav-tools in Recommends.
[youtubedl] / youtube_dl / extractor / played.py
index 45716c75d9505c5fcb7e8c6d73ec4feaef298aee..8a1c296dda8b57611a0e464387be43ab0fc9a370 100644 (file)
@@ -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._hidden_inputs(orig_webpage)
 
         self._sleep(2, video_id)