This commit is contained in:
INeed4000Bucks 2024-04-28 16:13:06 +05:30 committed by GitHub
commit e4ff32105d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -128,6 +128,11 @@ class SpankBangIE(InfoExtractor):
format_url = format_url[0]
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={})
title = self._html_search_regex(