diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-08-05 00:59:07 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-08-05 00:59:07 +0700 |
commit | 8519b88f67de9c0c11cd2edd8dc55b9a4f13d110 (patch) | |
tree | 3fae739096fc85195f145ae4b835c7d3c8a972c6 /youtube_dl | |
parent | bbbe1cebfce3cfb63e9c01d29105fcba693ba54c (diff) |
[yandexdisk] Relax _VALID_URL (closes #13824)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/yandexdisk.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/yandexdisk.py b/youtube_dl/extractor/yandexdisk.py index 11729f0f7..e8f6ae10f 100644 --- a/youtube_dl/extractor/yandexdisk.py +++ b/youtube_dl/extractor/yandexdisk.py @@ -13,9 +13,9 @@ from ..utils import ( 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', 'md5': '33955d7ae052f15853dc41f35f17581c', 'info_dict': { @@ -27,7 +27,10 @@ class YandexDiskIE(InfoExtractor): 'uploader_id': '300043621', 'view_count': int, }, - } + }, { + 'url': 'https://yadi.sk/d/h3WAXvDS3Li3Ce', + 'only_matching': True, + }] def _real_extract(self, url): video_id = self._match_id(url) |