0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-25 02:45:12 +00:00

Update yt_dlp/extractor/spankbang.py

Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
This commit is contained in:
INeed4000Bucks 2023-05-25 19:09:30 -07:00 committed by GitHub
parent e1e2f8ee9e
commit 2e3b852851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,8 +131,7 @@ def extract_format(format_id, format_url):
og_url = self._search_regex(
r'<meta property="og:url" content="(.*?)"', webpage, 'og:url', default=None)
if og_url:
video_id = self._search_regex(
r'https://spankbang.com/([^/]+)/', og_url, 'video ID', default=None)
video_id = self._search_regex(r'https://spankbang.com/([^/]+)/', og_url, 'video ID', default=None)
info = self._search_json_ld(webpage, video_id, default={})