mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 10:24:33 +01:00
[Pix11] add new extractor
This commit is contained in:
parent
4a12077855
commit
0d709f8b90
@ -581,6 +581,7 @@ from .philharmoniedeparis import PhilharmonieDeParisIE
|
|||||||
from .phoenix import PhoenixIE
|
from .phoenix import PhoenixIE
|
||||||
from .photobucket import PhotobucketIE
|
from .photobucket import PhotobucketIE
|
||||||
from .pinkbike import PinkbikeIE
|
from .pinkbike import PinkbikeIE
|
||||||
|
from .pix11 import Pix11IE
|
||||||
from .pladform import PladformIE
|
from .pladform import PladformIE
|
||||||
from .played import PlayedIE
|
from .played import PlayedIE
|
||||||
from .playfm import PlayFMIE
|
from .playfm import PlayFMIE
|
||||||
|
32
youtube_dl/extractor/pix11.py
Normal file
32
youtube_dl/extractor/pix11.py
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
from .common import InfoExtractor
|
||||||
|
from .ooyala import OoyalaIE
|
||||||
|
|
||||||
|
|
||||||
|
class Pix11IE(InfoExtractor):
|
||||||
|
_VALID_URL = r'https?://(?:www\.)?pix11\.com/\d{4}/(?:\d{2}/){2}(?P<display_id>[a-z0-9-]+)'
|
||||||
|
_TEST = {
|
||||||
|
'url': 'http://pix11.com/2016/05/05/donald-trump-on-cinco-de-mayo-i-love-hispanics/',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'hqbXBiMzE6O3im1B98VpANYppaJMcuY9',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Donald Trump on Cinco de Mayo: `I love Hispanics!`',
|
||||||
|
'duration': 53.62,
|
||||||
|
},
|
||||||
|
'params': {
|
||||||
|
# m3u8 download
|
||||||
|
'skip_download': True,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
display_id = mobj.group('display_id')
|
||||||
|
webpage = self._download_webpage(url, display_id)
|
||||||
|
|
||||||
|
return OoyalaIE._build_url_result(self._search_regex(
|
||||||
|
r'"ooyalaplayer-1",\s*"(\w{32})"', webpage, 'ooyala id'))
|
Loading…
Reference in New Issue
Block a user