projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bbbe1ce
)
[yandexdisk] Relax _VALID_URL (closes #13824)
author
Sergey M․
<dstftw@gmail.com>
Fri, 4 Aug 2017 17:59:07 +0000
(
00:59
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 4 Aug 2017 17:59:07 +0000
(
00:59
+0700)
youtube_dl/extractor/yandexdisk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/yandexdisk.py
b/youtube_dl/extractor/yandexdisk.py
index 11729f0f78858dfd2b59ad4b6a5268a86bf7fbf1..e8f6ae10f97470932f31afd6f5c92e9c802c28aa 100644
(file)
--- a/
youtube_dl/extractor/yandexdisk.py
+++ b/
youtube_dl/extractor/yandexdisk.py
@@
-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
=
{
+ _TEST
S = [
{
'url': 'https://yadi.sk/i/VdOeDou8eZs6Y',
'md5': '33955d7ae052f15853dc41f35f17581c',
'info_dict': {
'url': 'https://yadi.sk/i/VdOeDou8eZs6Y',
'md5': '33955d7ae052f15853dc41f35f17581c',
'info_dict': {
@@
-27,7
+27,10
@@
class YandexDiskIE(InfoExtractor):
'uploader_id': '300043621',
'view_count': int,
},
'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)
def _real_extract(self, url):
video_id = self._match_id(url)