Compare commits

...

3 Commits

Author SHA1 Message Date
INeed4000Bucks
35061efbda
Merge 2e3b852851 into da252d9d32 2024-11-18 09:35:59 +05:30
INeed4000Bucks
2e3b852851
Update yt_dlp/extractor/spankbang.py
Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
2023-05-25 19:09:30 -07:00
INeed4000Bucks
e1e2f8ee9e
Playlist videos will yield their original IDs
Archiving the ID of a video in a playlist is the same as archiving a single video.
2023-05-20 01:19:59 -07:00

View File

@ -129,6 +129,11 @@ class SpankBangIE(InfoExtractor):
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(