1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00
This commit is contained in:
INeed4000Bucks 2025-03-07 18:15:55 -07:00 committed by GitHub
commit 974a5039f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,6 +129,11 @@ def extract_format(format_id, format_url):
format_url = format_url[0] format_url = format_url[0]
extract_format(format_id, format_url) 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)
info = self._search_json_ld(webpage, video_id, default={}) info = self._search_json_ld(webpage, video_id, default={})
title = self._html_search_regex( title = self._html_search_regex(