mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-03 02:26:23 +01:00
[extractor/doodstream] Support more domains (#4493)
Authored by: Galiley
This commit is contained in:
parent
befcac11a0
commit
b6cd135ac2
@ -6,7 +6,7 @@ from .common import InfoExtractor
|
||||
|
||||
|
||||
class DoodStreamIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?dood\.(?:to|watch)/[ed]/(?P<id>[a-z0-9]+)'
|
||||
_VALID_URL = r'https?://(?:www\.)?dood\.(?:to|watch|so|pm)/[ed]/(?P<id>[a-z0-9]+)'
|
||||
_TESTS = [{
|
||||
'url': 'http://dood.to/e/5s1wmbdacezb',
|
||||
'md5': '4568b83b31e13242b3f1ff96c55f0595',
|
||||
@ -37,6 +37,9 @@ class DoodStreamIE(InfoExtractor):
|
||||
'description': 'Stacy Cruz Cute ALLWAYSWELL | DoodStream.com',
|
||||
'thumbnail': 'https://img.doodcdn.com/snaps/8edqd5nppkac3x8u.jpg',
|
||||
}
|
||||
}, {
|
||||
'url': 'https://dood.so/d/jzrxn12t2s7n',
|
||||
'only_matching': True
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
@ -44,7 +47,8 @@ class DoodStreamIE(InfoExtractor):
|
||||
url = f'https://dood.to/e/{video_id}'
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
|
||||
title = self._html_search_meta(['og:title', 'twitter:title'], webpage, default=None)
|
||||
title = self._html_search_meta(
|
||||
('og:title', 'twitter:title'), webpage, default=None) or self._html_extract_title(webpage)
|
||||
thumb = self._html_search_meta(['og:image', 'twitter:image'], webpage, default=None)
|
||||
token = self._html_search_regex(r'[?&]token=([a-z0-9]+)[&\']', webpage, 'token')
|
||||
description = self._html_search_meta(
|
||||
|
Loading…
Reference in New Issue
Block a user