1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-14 12:15:23 +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

View File

@@ -46,12 +46,6 @@ class PlayerFmIE(InfoExtractor):
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)