diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-19 14:16:11 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-19 14:20:53 +0530 |
commit | 9c1c3ec016d61c346dc465cee32090df1a40c942 (patch) | |
tree | dc784ad5c27f0eba71d04e000c17c36f77358048 | |
parent | f9cc0161e67fcf1471178b43649ad8ba6b508c93 (diff) | |
download | hypervideo-pre-9c1c3ec016d61c346dc465cee32090df1a40c942.tar.lz hypervideo-pre-9c1c3ec016d61c346dc465cee32090df1a40c942.tar.xz hypervideo-pre-9c1c3ec016d61c346dc465cee32090df1a40c942.zip |
[Oreilly] Bugfix for 7738bd32722154a26f70006e0fe586f40d06e606
-rw-r--r-- | yt_dlp/extractor/safari.py | 2 |
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()) |