From 9c1c3ec016d61c346dc465cee32090df1a40c942 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 19 Sep 2021 14:16:11 +0530 Subject: [PATCH] [Oreilly] Bugfix for 7738bd32722154a26f70006e0fe586f40d06e606 --- yt_dlp/extractor/safari.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/safari.py b/yt_dlp/extractor/safari.py index fbbbc7e77a..cca4464ca8 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())