aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleri Kaisattera <73682764+alerikaisattera@users.noreply.github.com>2022-01-20 02:44:13 +0600
committerGitHub <noreply@github.com>2022-01-20 02:14:13 +0530
commit0ff1e0fba361a676d353f41788ff5ce438908084 (patch)
tree715acd58e7d3d7ed4251b0e3e795ccd0f1b3c6b3
parent1a20d29552431efa8f4f8b14d0ac0561c2d59181 (diff)
downloadhypervideo-pre-0ff1e0fba361a676d353f41788ff5ce438908084.tar.lz
hypervideo-pre-0ff1e0fba361a676d353f41788ff5ce438908084.tar.xz
hypervideo-pre-0ff1e0fba361a676d353f41788ff5ce438908084.zip
[Theta] Fix valid URL (#2323)
Authored by: alerikaisattera
-rw-r--r--yt_dlp/extractor/theta.py10
1 files changed, 9 insertions, 1 deletions
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 @@ from ..utils import try_get
class ThetaStreamIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?theta\.tv/(?!video/)(?P<id>[a-z0-9]+)'
+ _VALID_URL = r'https?://(?:www\.)?theta\.tv/(?!video/)(?P<id>[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):