mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
Adding support for 13.cl
This commit is contained in:
parent
271a2dbfa2
commit
2d73b45805
|
@ -23,6 +23,7 @@ from .br import BRIE
|
||||||
from .breakcom import BreakIE
|
from .breakcom import BreakIE
|
||||||
from .brightcove import BrightcoveIE
|
from .brightcove import BrightcoveIE
|
||||||
from .c56 import C56IE
|
from .c56 import C56IE
|
||||||
|
from .canal13cl import Canal13cslIE
|
||||||
from .canalplus import CanalplusIE
|
from .canalplus import CanalplusIE
|
||||||
from .canalc2 import Canalc2IE
|
from .canalc2 import Canalc2IE
|
||||||
from .cbs import CBSIE
|
from .cbs import CBSIE
|
||||||
|
|
28
youtube_dl/extractor/canal13cl.py
Normal file
28
youtube_dl/extractor/canal13cl.py
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import re
|
||||||
|
|
||||||
|
from .common import InfoExtractor
|
||||||
|
|
||||||
|
|
||||||
|
class Canal13clIE(InfoExtractor):
|
||||||
|
_VALID_URL = r'^http://(?:www\.)?13\.cl/programa/'
|
||||||
|
IE_NAME = 'Canal13cl'
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
webpage = self._download_webpage(url)
|
||||||
|
title = self._html_search_regex(
|
||||||
|
r'articuloTitulo = \'(.*?)\'',
|
||||||
|
webpage, u'title')
|
||||||
|
url = self._html_search_regex(
|
||||||
|
r'articuloVideo = \'(.*?)\'',
|
||||||
|
webpage, u'url')
|
||||||
|
thumbnail = self._html_search_regex (
|
||||||
|
r'articuloImagen = \'(.*?)\'',
|
||||||
|
webpage, u'thumbnail')
|
||||||
|
|
||||||
|
return {
|
||||||
|
'url': url,
|
||||||
|
'title': title,
|
||||||
|
'ext': 'mp4',
|
||||||
|
'thumbnail': thumbnail
|
||||||
|
}
|
Loading…
Reference in a new issue