From 10b28733821612009bba91a570f34fd1732a8fb9 Mon Sep 17 00:00:00 2001 From: Nicolas Dato Date: Sun, 26 Nov 2023 19:51:35 -0300 Subject: [PATCH] [13.cl] Add https://www.13.cl extractor --- yt_dlp/extractor/_extractors.py | 1 + yt_dlp/extractor/c13cl.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 yt_dlp/extractor/c13cl.py diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py index 0a97125369..5ad10594c8 100644 --- a/yt_dlp/extractor/_extractors.py +++ b/yt_dlp/extractor/_extractors.py @@ -278,6 +278,7 @@ from .businessinsider import BusinessInsiderIE from .bundesliga import BundesligaIE from .buzzfeed import BuzzFeedIE from .byutv import BYUtvIE +from .c13cl import C13ClIE from .c56 import C56IE from .cableav import CableAVIE from .callin import CallinIE diff --git a/yt_dlp/extractor/c13cl.py b/yt_dlp/extractor/c13cl.py new file mode 100644 index 0000000000..390432f4a6 --- /dev/null +++ b/yt_dlp/extractor/c13cl.py @@ -0,0 +1,15 @@ +from .common import InfoExtractor +from ..utils import js_to_json +from urllib.parse import urlencode + +class C13ClIE(InfoExtractor): + _VALID_URL = r'https?://(?:www\.)?13\.cl/en-vivo' + + def _real_extract(self, url): + display_id = 'C13' + webpage = self._download_webpage(url, display_id) + + stream_url = self._search_regex(r']+>