mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-02-12 13:09:49 +00:00
Updated the AZNude extractor
This commit is contained in:
parent
d83d3cca51
commit
4596e46231
@ -99,14 +99,14 @@ class AZNudeCollectionIE(InfoExtractor):
|
|||||||
'url': 'http://www.aznude.com/view/celeb/m/marisatomei.html',
|
'url': 'http://www.aznude.com/view/celeb/m/marisatomei.html',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'title': 'Marisa Tomei Nude - Aznude ',
|
'title': 'Marisa Tomei Nude - Aznude ',
|
||||||
'id': 'view/celeb/m/marisatomei.html',
|
'id': 'marisatomei',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 33,
|
'playlist_mincount': 33,
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://www.aznude.com/view/movie/l/loiteringwithintent.html',
|
'url': 'https://www.aznude.com/view/movie/l/loiteringwithintent.html',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'title': 'Loitering With Intent Nude Scenes - Aznude',
|
'title': 'Loitering With Intent Nude Scenes - Aznude',
|
||||||
'id': 'view/movie/l/loiteringwithintent.html',
|
'id': 'loiteringwithintent',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 2,
|
'playlist_mincount': 2,
|
||||||
} ]
|
} ]
|
||||||
@ -117,11 +117,11 @@ class AZNudeCollectionIE(InfoExtractor):
|
|||||||
title = self._search_regex(r'(?:<title>)(?P<thetitle>.+)(?:</title>)', webpage, 'title', default=None).title()
|
title = self._search_regex(r'(?:<title>)(?P<thetitle>.+)(?:</title>)', webpage, 'title', default=None).title()
|
||||||
|
|
||||||
parse_result = urlparse(url)
|
parse_result = urlparse(url)
|
||||||
url_prefix = parse_result.scheme + '://' + parse_result.netloc
|
base_url = '%s://%s' % (parse_result.scheme, parse_result.netloc)
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for path in re.findall(r'(?:<a[^>]+href=")(?P<url>[^"]+)(?:"[^>]+class="(?:[^"]+ )?show-clip(?:"| [^"]+")[^>]*>)', webpage):
|
for path in re.findall(r'(?:<a[^>]+href=")(?P<url>[^"]+)(?:"[^>]+class="(?:[^"]+ )?show-clip(?:"| [^"]+")[^"]+lightbox=[^>]*>)', webpage):
|
||||||
if not path.startswith("//"):
|
entries.append( self.url_result(urljoin(base_url, path), AZNudeIE.ie_key()) )
|
||||||
entries.append( self.url_result(urljoin(url_prefix, path), AZNudeIE.ie_key()) )
|
|
||||||
|
|
||||||
return self.playlist_result(entries, page_id, title)
|
return self.playlist_result(entries, page_id, title)
|
||||||
|
|
||||||
|
@ -81,8 +81,7 @@ from .awaan import (
|
|||||||
from .azmedien import AZMedienIE
|
from .azmedien import AZMedienIE
|
||||||
from .aznude import (
|
from .aznude import (
|
||||||
AZNudeIE,
|
AZNudeIE,
|
||||||
AZNudeCelebIE,
|
AZNudeCollectionIE,
|
||||||
AZNudeMovieIE,
|
|
||||||
)
|
)
|
||||||
from .baidu import BaiduVideoIE
|
from .baidu import BaiduVideoIE
|
||||||
from .bambuser import BambuserIE, BambuserChannelIE
|
from .bambuser import BambuserIE, BambuserChannelIE
|
||||||
|
Loading…
Reference in New Issue
Block a user