mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 09:37:45 +08:00
[clavior] Fix bug for bofiaz.com
This commit is contained in:
parent
cd78b7edca
commit
2e5974a551
@ -8,7 +8,7 @@ from .common import InfoExtractor
|
||||
|
||||
class ClaviorIE(InfoExtractor):
|
||||
_VALID_URL = r'http://(?:www\.)?(clavior|bofiaz)\.com/(?P<key>.*)/index.php\?option=com_content&view=article&id=(?P<id>.*):ghhghgh&catid=(?P<catid>[0-9]+):(?P<genre>[a-z]+)-&Itemid=(?P<itemid>[0-9]+)'
|
||||
_TEST = {
|
||||
_TESTS = [{
|
||||
'url': 'http://clavior.com/kk54bvb7gyt8/index.php?option=com_content&view=article&id=685549200:ghhghgh&catid=7:drame-&Itemid=17',
|
||||
'info_dict': {
|
||||
'id': '685549200',
|
||||
@ -17,7 +17,16 @@ class ClaviorIE(InfoExtractor):
|
||||
'description': 'Revient sur la jeunesse et les années d’apprentissage du célèbre auteur J.R.R. Tolkien. Orphelin, il trouve l’amitié, l’amour et l’inspiration au sein d’un groupe de camarades de son école. Mais la Première Guerre Mondiale éclate et menace de détruire cette « communauté ». Ce sont toutes ces expériences qui vont inspirer Tolkien dans l’écriture de ses romans de la Terre du Milieu "Bilbo le Hobbit" et "Le Seigneur des Anneaux".',
|
||||
'thumbnail': r're:^https?://image\.tmdb\.org/t/p/original/.*\.jpg$',
|
||||
},
|
||||
}
|
||||
}, {
|
||||
'url': 'http://bofiaz.com/lmop87vv5d4c8df7/index.php?option=com_content&view=article&id=1036058205:ghhghgh&catid=6:comedie-&Itemid=16',
|
||||
'info_dict': {
|
||||
'id': '1036058205',
|
||||
'ext': 'mp4',
|
||||
'title': 'Tu pourrais être le tueur (2018) ',
|
||||
'description': "Un moniteur de camp souffrant de trous de mémoire se retrouve entouré de meurtre. Il se tourne vers son ami passionné de films d'horreur pour lui demander conseil et pour lui faire croire qu'il est peut-être le tueur.",
|
||||
'thumbnail': r're:^https?://image\.tmdb\.org/t/p/original/.*\.jpg$',
|
||||
},
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
if 'test' not in self._downloader.params:
|
||||
@ -27,7 +36,7 @@ class ClaviorIE(InfoExtractor):
|
||||
id = mobj.group('id')
|
||||
|
||||
webpage = self._download_webpage(url, id)
|
||||
nexturl = self._search_regex(r'<iframe src="(.*?)"', webpage, "Iframe src")
|
||||
nexturl = self._search_regex(r'<iframe src="(((?!com).)*?)"', webpage, "Iframe src")
|
||||
|
||||
title = self._search_regex(r'<title>(.*?)</title>', webpage, "title")
|
||||
description = self._search_regex(r'<p style="text-align: left;">\s*(([\s\S])*?)\s*</p>', webpage, "description")
|
||||
@ -35,7 +44,7 @@ class ClaviorIE(InfoExtractor):
|
||||
thumbnail = self._search_regex(r'<img src="(.*?)"', webpage, "thumbnail")
|
||||
|
||||
webpage = self._download_webpage(nexturl, id)
|
||||
nexturl = self._search_regex(r"""<a onclick="window.location.href='(.*?)'""", webpage, "Onclick location")
|
||||
nexturl = self._search_regex(r"""<a onclick="window\.location\.href='(.*?)'""", webpage, "Onclick location")
|
||||
|
||||
webpage = self._download_webpage(nexturl, id)
|
||||
data_json = self._search_regex(r'sources: \[\s*(([\s\S])*?)\s*\],', webpage, "data JSON")
|
||||
|
Loading…
x
Reference in New Issue
Block a user