Skip to content

Commit

Permalink
[yandexdisk] Relax _VALID_URL (closes #13824)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Aug 4, 2017
1 parent bbbe1ce commit 8519b88
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions youtube_dl/extractor/yandexdisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@


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': {
Expand All @@ -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)
Expand Down

0 comments on commit 8519b88

Please sign in to comment.