mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 04:30:10 +09:00
Merge 657006b85d
into c5098961b0
This commit is contained in:
commit
95140159b2
@ -547,7 +547,10 @@ from .ivi import (
|
||||
IviCompilationIE
|
||||
)
|
||||
from .ivideon import IvideonIE
|
||||
from .iwara import IwaraIE
|
||||
from .iwara import (
|
||||
IwaraIE,
|
||||
IwaraPlaylistIE,
|
||||
)
|
||||
from .izlesene import IzleseneIE
|
||||
from .jamendo import (
|
||||
JamendoIE,
|
||||
|
@ -1,6 +1,8 @@
|
||||
# coding: utf-8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import re
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..compat import compat_urllib_parse_urlparse
|
||||
from ..utils import (
|
||||
@ -97,3 +99,40 @@ class IwaraIE(InfoExtractor):
|
||||
'age_limit': age_limit,
|
||||
'formats': formats,
|
||||
}
|
||||
|
||||
|
||||
class IwaraPlaylistIE(InfoExtractor):
|
||||
IE_NAME = 'iwara:playlist'
|
||||
_VALID_URL = r'https?://(?:www\.|ecchi\.)?iwara\.tv/playlist/(?P<id>[a-zA-Z0-9-]+)'
|
||||
_TEST = {
|
||||
'url': 'https://ecchi.iwara.tv/playlist/best-enf',
|
||||
'info_dict': {
|
||||
'title': 'Best enf',
|
||||
'uploader_id': 'Jared98112',
|
||||
'id': 'best-enf',
|
||||
},
|
||||
'playlist_mincount': 50,
|
||||
}
|
||||
|
||||
def _real_extract(self, url):
|
||||
playlist_id = self._match_id(url)
|
||||
|
||||
webpage = self._download_webpage(url, playlist_id)
|
||||
|
||||
title = self._html_search_regex(r'<h1 class="title"[^>]*?>(.*?)</h1>', webpage, 'title')
|
||||
uploader_id = self._html_search_regex(
|
||||
r'<div class="[^"]views-field-name">\s*<span class="field-content"><h2>(.*?)</h2>',
|
||||
webpage,
|
||||
'uploader_id')
|
||||
urls = re.findall(
|
||||
r'<h3 class="title">\s*<a href="([^"]+)">',
|
||||
webpage)
|
||||
entries = [self.url_result(u) for u in urls]
|
||||
|
||||
return {
|
||||
'_type': 'playlist',
|
||||
'id': playlist_id,
|
||||
'uploader_id': uploader_id,
|
||||
'title': title,
|
||||
'entries': entries,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user