1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-14 12:15:23 +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:
R0hanW
2025-05-05 15:43:43 -04:00
committed by GitHub
parent 9ddb1aac65
commit a181f56cb0

View File

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