mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 21:56:53 +01:00
fix recursive error
This commit is contained in:
parent
d1cc05e17e
commit
36dbca8784
@ -26,7 +26,7 @@ def _real_extract(self, url):
|
||||
video_id = self._match_id(url)
|
||||
return {
|
||||
'_type': 'url',
|
||||
'ie-key': 'GoogleDrive',
|
||||
'ie_key': 'GoogleDrive',
|
||||
'url': 'https://drive.google.com/file/d/%s' % video_id
|
||||
}
|
||||
|
||||
@ -66,34 +66,34 @@ def _real_extract(self, url):
|
||||
)
|
||||
try:
|
||||
title = self._html_search_regex(
|
||||
r'"title"\s+,\s+"[^"]+',
|
||||
r'"title"\s*,\s*"([^"]+)',
|
||||
webpage,
|
||||
'title'
|
||||
)
|
||||
fmt_stream_map = self._html_search_regex(
|
||||
r'"fmt_stream_map"\s+,\s+"[^"]+',
|
||||
r'"fmt_stream_map"\s*,\s*"([^"]+)',
|
||||
webpage,
|
||||
'fmt_stream_map'
|
||||
)
|
||||
fmt_list = self._html_search_regex(
|
||||
r'"fmt_list"\s+,\s+"[^"]+',
|
||||
r'"fmt_list"\s*,\s*"([^"]+)',
|
||||
webpage,
|
||||
'fmt_list'
|
||||
)
|
||||
# timestamp = self._html_search_regex(
|
||||
# r'"timestamp"\s+,\s+"[^"]+',
|
||||
# r'"timestamp"\s*,\s*"([^"]+)',
|
||||
# webpage,
|
||||
# 'timestamp'
|
||||
# )
|
||||
length_seconds = self._html_search_regex(
|
||||
r'"length_seconds"\s+,\s+"[^"]+',
|
||||
r'"length_seconds"\s*,\s*"([^"]+)',
|
||||
webpage,
|
||||
'length_seconds'
|
||||
)
|
||||
except RegexNotFoundError:
|
||||
try:
|
||||
reason = self._html_search_regex(
|
||||
r'"reason","[^"]+',
|
||||
r'"reason","([^"]+)',
|
||||
webpage,
|
||||
'reason'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user