mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 01:13:15 +00:00
- formatting
This commit is contained in:
parent
39672cdc79
commit
c2baf165e4
|
@ -46,7 +46,7 @@ def _real_extract(self, url):
|
||||||
course = self._search_regex(self._VALID_URL, url, 'post url', group='course_name')
|
course = self._search_regex(self._VALID_URL, url, 'post url', group='course_name')
|
||||||
video_url = self._VIDEO_URL % (course, video_id)
|
video_url = self._VIDEO_URL % (course, video_id)
|
||||||
|
|
||||||
video_dict = self._download_json(video_url, None, 'Searching for videos', expected_status=[404, 500])
|
video_dict = self._download_json(video_url, video_id, 'Searching for videos')
|
||||||
|
|
||||||
if video_dict:
|
if video_dict:
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
Loading…
Reference in a new issue