0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-03 23:25:06 +00:00

[firedrive] fix broken extractor

This commit is contained in:
Naglis Jonaitis 2014-08-06 02:26:42 +03:00
parent 6de0595eb8
commit 6b8492a782

View file

@ -42,7 +42,6 @@ def _real_extract(self, url):
fields = dict(re.findall(r'''(?x)<input\s+ fields = dict(re.findall(r'''(?x)<input\s+
type="hidden"\s+ type="hidden"\s+
name="([^"]+)"\s+ name="([^"]+)"\s+
(?:id="[^"]+"\s+)?
value="([^"]*)" value="([^"]*)"
''', webpage)) ''', webpage))
@ -66,7 +65,7 @@ def _real_extract(self, url):
ext = self._search_regex(r'type:\s?\'([^\']+)\',', ext = self._search_regex(r'type:\s?\'([^\']+)\',',
webpage, 'extension', fatal=False) webpage, 'extension', fatal=False)
video_url = self._search_regex( video_url = self._search_regex(
r'file:\s?\'(http[^\']+)\',', webpage, 'file url') r'file:\s?loadURL\(\'(http[^\']+)\'\),', webpage, 'file url')
formats = [{ formats = [{
'format_id': 'sd', 'format_id': 'sd',