diff options
author | kr4ssi <44404263+kr4ssi@users.noreply.github.com> | 2021-05-16 16:46:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 21:46:32 +0700 |
commit | ef03721f470606deaddb4a57e51550045a32fb04 (patch) | |
tree | 1a00bd0e154fd8683f515d9f7ab7225c77ed3534 /youtube_dl | |
parent | 1e8aaa1d155d2f6b04ba1caa040876372bb0bb44 (diff) |
[vivo] Add support for vivo.st (#29009)
Co-authored-by: Sergey M. <dstftw@gmail.com>
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/shared.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/shared.py b/youtube_dl/extractor/shared.py index 02295d1a4..93ab2a167 100644 --- a/youtube_dl/extractor/shared.py +++ b/youtube_dl/extractor/shared.py @@ -86,10 +86,10 @@ class SharedIE(SharedBaseIE): class VivoIE(SharedBaseIE): IE_DESC = 'vivo.sx' - _VALID_URL = r'https?://vivo\.sx/(?P<id>[\da-z]{10})' + _VALID_URL = r'https?://vivo\.s[xt]/(?P<id>[\da-z]{10})' _FILE_NOT_FOUND = '>The file you have requested does not exists or has been removed' - _TEST = { + _TESTS = [{ 'url': 'http://vivo.sx/d7ddda0e78', 'md5': '15b3af41be0b4fe01f4df075c2678b2c', 'info_dict': { @@ -98,7 +98,10 @@ class VivoIE(SharedBaseIE): 'title': 'Chicken', 'filesize': 515659, }, - } + }, { + 'url': 'http://vivo.st/d7ddda0e78', + 'only_matching': True, + }] def _extract_title(self, webpage): title = self._html_search_regex( |