diff --git a/youtube_dl/extractor/unity.py b/youtube_dl/extractor/unity.py index 793346ac0..73daacf29 100644 --- a/youtube_dl/extractor/unity.py +++ b/youtube_dl/extractor/unity.py @@ -5,7 +5,7 @@ from .youtube import YoutubeIE class UnityIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?unity3d\.com/learn/tutorials/(?:.*)/(?P[0-9a-zA-Z-]+)' + _VALID_URL = r'https?://(?:www\.)?unity3d\.com/learn/tutorials/(?:[^/]+/)*(?P[^/?#&]+)' _TESTS = [{ 'url': 'https://unity3d.com/learn/tutorials/topics/animation/animate-anything-mecanim', 'info_dict': {