From 0ff1e0fba361a676d353f41788ff5ce438908084 Mon Sep 17 00:00:00 2001 From: Aleri Kaisattera <73682764+alerikaisattera@users.noreply.github.com> Date: Thu, 20 Jan 2022 02:44:13 +0600 Subject: [PATCH] [Theta] Fix valid URL (#2323) Authored by: alerikaisattera --- yt_dlp/extractor/theta.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/theta.py b/yt_dlp/extractor/theta.py index 3b6543629..8b6d70a9f 100644 --- a/yt_dlp/extractor/theta.py +++ b/yt_dlp/extractor/theta.py @@ -6,7 +6,7 @@ class ThetaStreamIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?theta\.tv/(?!video/)(?P[a-z0-9]+)' + _VALID_URL = r'https?://(?:www\.)?theta\.tv/(?!video/)(?P[a-z0-9-]+)' _TESTS = [{ 'url': 'https://www.theta.tv/davirus', 'skip': 'The live may have ended', @@ -25,6 +25,14 @@ class ThetaStreamIE(InfoExtractor): 'title': 'Mystery Science Theatre 3000 24/7 Powered by the THETA Network.', 'thumbnail': r're:https://user-prod-theta-tv\.imgix\.net/.+\.jpg', } + }, { + 'url': 'https://www.theta.tv/contv-anime', + 'info_dict': { + 'id': 'ConTVAnime', + 'ext': 'mp4', + 'title': 'CONTV ANIME 24/7. Powered by THETA Network.', + 'thumbnail': r're:https://user-prod-theta-tv\.imgix\.net/.+\.jpg', + } }] def _real_extract(self, url):