about summary refs log tree commit diff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2022-10-20 11:06:44 +0000
committerGitHub <noreply@github.com>2022-10-20 11:06:44 +0000
commit0faa45d6c08f518b73d20e341944ea7292f9f2b2 (patch)
tree64de7b52f8f21651c43affd270bbe807146bac2c
parent447edc48e63f5f21797ea0d9ee84e37ed1547035 (diff)
downloadyoutube-dl-0faa45d6c08f518b73d20e341944ea7292f9f2b2.tar.gz
youtube-dl-0faa45d6c08f518b73d20e341944ea7292f9f2b2.tar.xz
youtube-dl-0faa45d6c08f518b73d20e341944ea7292f9f2b2.zip
[BongaCams] Support new .net domain
Resolves #31262.
-rw-r--r--youtube_dl/extractor/bongacams.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bongacams.py b/youtube_dl/extractor/bongacams.py
index 180542fbc..016999d55 100644
--- a/youtube_dl/extractor/bongacams.py
+++ b/youtube_dl/extractor/bongacams.py
@@ -1,3 +1,4 @@
+# coding: utf-8
 from __future__ import unicode_literals
 
 import re
@@ -12,13 +13,28 @@ from ..utils import (
 
 
 class BongaCamsIE(InfoExtractor):
-    _VALID_URL = r'https?://(?P<host>(?:[^/]+\.)?bongacams\d*\.com)/(?P<id>[^/?&#]+)'
+    _VALID_URL = r'https?://(?P<host>(?:[^/]+\.)?bongacams\d*\.(?:com|net))/(?P<id>[^/?&#]+)'
     _TESTS = [{
         'url': 'https://de.bongacams.com/azumi-8',
         'only_matching': True,
     }, {
         'url': 'https://cn.bongacams.com/azumi-8',
         'only_matching': True,
+    }, {
+        'url': 'https://de.bongacams.net/claireashton',
+        'info_dict': {
+            'id': 'claireashton',
+            'ext': 'mp4',
+            'title': r're:ClaireAshton \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
+            'age_limit': 18,
+            'uploader_id': 'ClaireAshton',
+            'uploader': 'ClaireAshton',
+            'like_count': int,
+            'is_live': True,
+        },
+        'params': {
+            'skip_download': True,
+        },
     }]
 
     def _real_extract(self, url):