From 7e21328585afda6d66f98ca476301680eeffac32 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 5 Aug 2024 11:06:10 +0200 Subject: Adding upstream version 2024.07.01. Signed-off-by: Daniel Baumann --- yt_dlp/extractor/stitcher.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'yt_dlp/extractor/stitcher.py') diff --git a/yt_dlp/extractor/stitcher.py b/yt_dlp/extractor/stitcher.py index 46a15e6..09ebabb 100644 --- a/yt_dlp/extractor/stitcher.py +++ b/yt_dlp/extractor/stitcher.py @@ -1,5 +1,4 @@ from .common import InfoExtractor -from ..compat import compat_str from ..utils import ( ExtractorError, clean_html, @@ -37,7 +36,7 @@ class StitcherBaseIE(InfoExtractor): def _extract_episode(self, episode, audio_url, show_info): info = { - 'id': compat_str(episode['id']), + 'id': str(episode['id']), 'display_id': episode.get('slug'), 'title': episode['title'].strip(), 'description': self._extract_description(episode), @@ -126,7 +125,7 @@ class StitcherShowIE(StitcherBaseIE): def _real_extract(self, url): show_slug = self._match_id(url) data = self._call_api( - 'search/show/%s/allEpisodes' % show_slug, show_slug, {'count': 10000}) + f'search/show/{show_slug}/allEpisodes', show_slug, {'count': 10000}) show = try_get(data, lambda x: x['shows'][0], dict) or {} show_info = self._extract_show_info(show) -- cgit v1.2.3