aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/canal13cl.py
diff options
context:
space:
mode:
authorJuan C. Olivares <cristobal@cxsoftware.com>2014-03-02 23:14:19 -0300
committerJuan C. Olivares <cristobal@cxsoftware.com>2014-03-02 23:15:12 -0300
commit2d73b4580583dfefd80cfd39c0c8de11b1bb30ee (patch)
treed07b524f39b2acf6df652ae36b46290cb420aa29 /youtube_dl/extractor/canal13cl.py
parent271a2dbfa22a99ebf16fbf1e2dd175e5b6d08ca4 (diff)
Adding support for 13.cl
Diffstat (limited to 'youtube_dl/extractor/canal13cl.py')
-rw-r--r--youtube_dl/extractor/canal13cl.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/youtube_dl/extractor/canal13cl.py b/youtube_dl/extractor/canal13cl.py
new file mode 100644
index 000000000..3b4c7cdb7
--- /dev/null
+++ b/youtube_dl/extractor/canal13cl.py
@@ -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
+ }