Skip to content

Commit

Permalink
[BongaCams] Support new .net domain
Browse files Browse the repository at this point in the history
Resolves ytdl-org#31262.
  • Loading branch information
dirkf authored Oct 20, 2022
1 parent 447edc4 commit 0faa45d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion youtube_dl/extractor/bongacams.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# coding: utf-8
from __future__ import unicode_literals

import re
Expand All @@ -12,13 +13,28 @@


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):
Expand Down

0 comments on commit 0faa45d

Please sign in to comment.