[Oreilly] Bugfix for 7738bd3272

pull/1029/head
pukkandan 3 years ago
parent f9cc0161e6
commit 9c1c3ec016
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -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())

Loading…
Cancel
Save