1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 17:08:32 +00:00

Add vcodec to return; remove unnecessary code

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
R0hanW 2025-05-05 15:45:25 -04:00 committed by GitHub
parent fdf89a1d39
commit 9c4772bc12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,15 +46,10 @@ def _real_extract(self, url):
video_id, url = self._match_valid_url(url).group('id', 'url')
data = self._download_json(url + '.json', video_id)
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)
formats = [{
'url': video_url,
'ext': determine_ext(video_url, default_ext=''),
}]
return {
'id': video_id,
'url': 'https://' + self._search_regex(r'redirect\.mp3/(.+)', data['url'], 'video url'),
'vcodec': 'none',
'thumbnail': thumbnail,
'title': title,
'creators': creators,