From a181f56cb02c395c397d5c3d3bd24dec76b7882a Mon Sep 17 00:00:00 2001 From: R0hanW <30849420+R0hanW@users.noreply.github.com> Date: Mon, 5 May 2025 15:43:43 -0400 Subject: [PATCH] Use url capture group instead of adding .json to url Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/extractor/playerfm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/playerfm.py b/yt_dlp/extractor/playerfm.py index 96856a7b62..a4819bdab6 100644 --- a/yt_dlp/extractor/playerfm.py +++ b/yt_dlp/extractor/playerfm.py @@ -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')