1
0
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:
R0hanW 2025-05-05 15:43:55 -04:00 committed by GitHub
parent a181f56cb0
commit fdf89a1d39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)