From c8157b6fe7f94e469964b3ab6529a3fbf6335d9e Mon Sep 17 00:00:00 2001 From: Tithen-Firion Date: Mon, 5 Oct 2020 03:25:15 +0200 Subject: [PATCH] [wetv] improve regex, add another test --- youtube_dl/extractor/wetv.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/wetv.py b/youtube_dl/extractor/wetv.py index c1273e75b..ef9c9a551 100644 --- a/youtube_dl/extractor/wetv.py +++ b/youtube_dl/extractor/wetv.py @@ -87,6 +87,9 @@ class WeTvIE(WeTvBaseInfoExtractor): }, { 'url': 'https://wetv.vip/en/play/jenizogwk2t8400/o00318x0wds', 'only_matching': True, + }, { + 'url': "https://wetv.vip/en/play/jenizogwk2t8400-The%20King's%20Avatar/play?vid=o00318x0wds", + 'only_matching': True, }, { # user video 'url': 'https://wetv.vip/en/play/a3150lwr4jn-Ve-Po-Ad%20Review%20%2F%20HowTo', @@ -283,7 +286,11 @@ class WeTvPlaylistIE(WeTvBaseInfoExtractor): (?:[a-z]{2}(?:-[a-z]{2})?/)? play(?:/|\?cid=) (?P[a-z\d]{15}) - (?:$|[^a-z\d])''' + (?:-[^/]*)? + (?: + $| + /(?!(?:play\?vid=)?[a-z\d]{11}) + )''' _TESTS = [{ 'url': 'https://wetv.vip/en/play/jenizogwk2t8400', 'info_dict': {