mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
[yandexdisk] Relax _VALID_URL (closes #13824)
This commit is contained in:
parent
bbbe1cebfc
commit
8519b88f67
@ -13,9 +13,9 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class YandexDiskIE(InfoExtractor):
|
class YandexDiskIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://yadi\.sk/i/(?P<id>[^/?#&]+)'
|
_VALID_URL = r'https?://yadi\.sk/[di]/(?P<id>[^/?#&]+)'
|
||||||
|
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://yadi.sk/i/VdOeDou8eZs6Y',
|
'url': 'https://yadi.sk/i/VdOeDou8eZs6Y',
|
||||||
'md5': '33955d7ae052f15853dc41f35f17581c',
|
'md5': '33955d7ae052f15853dc41f35f17581c',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -27,7 +27,10 @@ class YandexDiskIE(InfoExtractor):
|
|||||||
'uploader_id': '300043621',
|
'uploader_id': '300043621',
|
||||||
'view_count': int,
|
'view_count': int,
|
||||||
},
|
},
|
||||||
}
|
}, {
|
||||||
|
'url': 'https://yadi.sk/d/h3WAXvDS3Li3Ce',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user