Compare commits

...

3 Commits

Author SHA1 Message Date
INeed4000Bucks
c75312e6a8
Merge 2e3b852851 into c673731061 2024-11-11 21:04:49 +01:00
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

@ -127,6 +127,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(