mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-08 14:28:35 +00:00
Use url capture group instead of adding .json to url
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
9ddb1aac65
commit
a181f56cb0
@ -43,8 +43,8 @@ class PlayerFmIE(InfoExtractor):
|
||||
|
||||
def _real_extract(self, url):
|
||||
# podcast url is always after last backlash
|
||||
video_id = self._match_id(url)
|
||||
data = self._download_json(url + '.json', None)
|
||||
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')
|
||||
|
Loading…
Reference in New Issue
Block a user