From 35da0c4bb8f39e561b07d23cdd135376af12abdf Mon Sep 17 00:00:00 2001 From: Marwan Yassin Date: Sun, 15 Mar 2020 05:57:24 +0200 Subject: [PATCH] Update Aparat regex --- youtube_dl/extractor/aparat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/aparat.py b/youtube_dl/extractor/aparat.py index ebc28e1a4..de863a594 100644 --- a/youtube_dl/extractor/aparat.py +++ b/youtube_dl/extractor/aparat.py @@ -48,7 +48,7 @@ class AparatIE(InfoExtractor): player = self._parse_json( self._search_regex( - r'options\s*=\s*JSON\.parse\(\s*(["\'])(?P(?:(?!\1).)+)\1\s*\)', + r'options\s*=\s*(?P.*\w*\W*)\;', webpage, 'options', group='value'), video_id)