mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-08 14:28:35 +00:00
Inline code
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
a181f56cb0
commit
fdf89a1d39
@ -46,12 +46,6 @@ def _real_extract(self, url):
|
||||
video_id, url = self._match_valid_url(url).group('id', 'url')
|
||||
data = self._download_json(url + '.json', video_id)
|
||||
|
||||
title = data.get('title')
|
||||
description = data.get('description')
|
||||
duration = data.get('duration')
|
||||
thumbnail = traverse_obj(data, ('image', 'url'), ('series', 'image', 'url'))
|
||||
creators = [traverse_obj(data, ('series', 'author'))]
|
||||
|
||||
video_url = join_nonempty('https', self._search_regex(r'redirect.mp3/(.*)', data['url'], 'redirect'), delim='://')
|
||||
if not video_url:
|
||||
raise ExtractorError('URL to podcast not found', expected=True)
|
||||
|
Loading…
Reference in New Issue
Block a user