aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--yt_dlp/extractor/safari.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/safari.py b/yt_dlp/extractor/safari.py
index fbbbc7e77..cca4464ca 100644
--- a/yt_dlp/extractor/safari.py
+++ b/yt_dlp/extractor/safari.py
@@ -197,7 +197,7 @@ class SafariApiIE(SafariBaseIE):
if 'library/view' in web_url:
web_url = web_url.replace('library/view', 'videos')
natural_keys = part['natural_key']
- web_url = f'{web_url.rsplit("/")[0]}/{natural_keys[0]}-{natural_keys[1][:-5]}'
+ web_url = f'{web_url.rsplit("/", 1)[0]}/{natural_keys[0]}-{natural_keys[1][:-5]}'
return self.url_result(web_url, SafariIE.ie_key())