From 774310793542e140a2f6ed54b2b58bdcee1dc572 Mon Sep 17 00:00:00 2001 From: Bayan Date: Mon, 17 Aug 2020 09:37:09 +0430 Subject: [PATCH] [aparat] Fixed regex & tests --- youtube_dl/extractor/aparat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/aparat.py b/youtube_dl/extractor/aparat.py index 80e05254f..2c865bd07 100644 --- a/youtube_dl/extractor/aparat.py +++ b/youtube_dl/extractor/aparat.py @@ -11,10 +11,10 @@ from ..utils import ( class AparatIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?aparat\.com/(?:v/|video/video/embed/videohash/)(?P[a-zA-Z0-9]+)/vt/frame' + _VALID_URL = r'https?://(?:www\.)?aparat\.com/(?:v/|video/video/embed/videohash/)(?P[a-zA-Z0-9]+/|vt/frame)' _TESTS = [{ - 'url': 'http://www.aparat.com/v/wP8On', + 'url': 'http://www.aparat.com/v/wP8On/', 'md5': '131aca2e14fe7c4dcb3c4877ba300c89', 'info_dict': { 'id': 'wP8On',