mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
Playlist videos will yield their original IDs
Archiving the ID of a video in a playlist is the same as archiving a single video.
This commit is contained in:
parent
447afb9eaa
commit
e1e2f8ee9e
1 changed files with 6 additions and 0 deletions
|
@ -128,6 +128,12 @@ 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(
|
||||
|
|
Loading…
Reference in a new issue