mirror of
https://code.hackerspace.pl/q3k/youtube-dl
synced 2025-03-16 11:43:02 +00:00
96 lines
3.5 KiB
Python
96 lines
3.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
import re
|
|
import json
|
|
|
|
from .common import InfoExtractor
|
|
from ..compat import compat_str
|
|
from ..utils import (
|
|
qualities,
|
|
unescapeHTML,
|
|
xpath_element,
|
|
)
|
|
|
|
|
|
class AllocineIE(InfoExtractor):
|
|
_VALID_URL = r'https?://(?:www\.)?allocine\.fr/(?P<typ>article|video|film)/(fichearticle_gen_carticle=|player_gen_cmedia=|fichefilm_gen_cfilm=|video-)(?P<id>[0-9]+)(?:\.html)?'
|
|
|
|
_TESTS = [{
|
|
'url': 'http://www.allocine.fr/article/fichearticle_gen_carticle=18635087.html',
|
|
'md5': '0c9fcf59a841f65635fa300ac43d8269',
|
|
'info_dict': {
|
|
'id': '19546517',
|
|
'ext': 'mp4',
|
|
'title': 'Astérix - Le Domaine des Dieux Teaser VF',
|
|
'description': 'md5:abcd09ce503c6560512c14ebfdb720d2',
|
|
'thumbnail': 're:http://.*\.jpg',
|
|
},
|
|
}, {
|
|
'url': 'http://www.allocine.fr/video/player_gen_cmedia=19540403&cfilm=222257.html',
|
|
'md5': 'd0cdce5d2b9522ce279fdfec07ff16e0',
|
|