aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/stitcher.py
diff options
context:
space:
mode:
authorsepro <4618135+seproDev@users.noreply.github.com>2024-06-12 01:09:58 +0200
committerGitHub <noreply@github.com>2024-06-12 01:09:58 +0200
commitadd96eb9f84cfffe85682bf2fb85135746994ee8 (patch)
tree583f209506aa01b2afa3933e504426de575fc43c /yt_dlp/extractor/stitcher.py
parentdb50f19d76c6870a5a13d0cab9287d684fd7449a (diff)
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
Diffstat (limited to 'yt_dlp/extractor/stitcher.py')
-rw-r--r--yt_dlp/extractor/stitcher.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/extractor/stitcher.py b/yt_dlp/extractor/stitcher.py
index 46a15e6a1..09ebabb28 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)