mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 04:30:10 +09:00
[HentaiStigma] Support new frame format with HTML5 video
* resolves #25019
This commit is contained in:
parent
515c8b85b1
commit
ac0c9c8f9f
@ -1,6 +1,11 @@
|
|||||||
|
# coding: utf-8
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
from ..utils import (
|
||||||
|
merge_dicts,
|
||||||
|
traverse_obj,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class HentaiStigmaIE(InfoExtractor):
|
class HentaiStigmaIE(InfoExtractor):
|
||||||
@ -24,16 +29,17 @@ class HentaiStigmaIE(InfoExtractor):
|
|||||||
title = self._html_search_regex(
|
title = self._html_search_regex(
|
||||||
r'<h2[^>]+class="posttitle"[^>]*><a[^>]*>([^<]+)</a>',
|
r'<h2[^>]+class="posttitle"[^>]*><a[^>]*>([^<]+)</a>',
|
||||||
webpage, 'title')
|
webpage, 'title')
|
||||||
wrap_url = self._html_search_regex(
|
|
||||||
|
wrap_url = self._search_regex(
|
||||||
r'<iframe[^>]+src="([^"]+mp4)"', webpage, 'wrapper url')
|
r'<iframe[^>]+src="([^"]+mp4)"', webpage, 'wrapper url')
|
||||||
wrap_webpage = self._download_webpage(wrap_url, video_id)
|
|
||||||
|
|
||||||
video_url = self._html_search_regex(
|
vid_page = self._download_webpage(wrap_url, video_id)
|
||||||
r'file\s*:\s*"([^"]+)"', wrap_webpage, 'video url')
|
|
||||||
|
|
||||||
return {
|
entries = self._parse_html5_media_entries(wrap_url, vid_page, video_id)
|
||||||
|
self._sort_formats(traverse_obj(entries, (0, 'formats')) or [])
|
||||||
|
|
||||||
|
return merge_dicts({
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'url': video_url,
|
|
||||||
'title': title,
|
'title': title,
|
||||||
'age_limit': 18,
|
'age_limit': 18,
|
||||||
}
|
}, entries[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user