From e56066a1c527c649d906efd3f5c9fc7841314373 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Tue, 29 Sep 2015 04:55:30 -0500 Subject: [PATCH] Reformat regexp --- youtube_dl/extractor/youtube.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 6a7916442..004154dcb 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1440,23 +1440,7 @@ class YoutubePlaylistIE(YoutubeBaseInfoExtractor): ((?:PL|LL|EC|UU|FL|RD|UL)[0-9A-Za-z-_]{10,}) )""" _TEMPLATE_URL = 'https://www.youtube.com/playlist?list=%s' - _VIDEO_RE = re.compile( - r"""href="\s*/watch\? - - # Video ID - v=(?P[0-9A-Za-z_-]{11})& - - [^"]*? - - # Index - index=(?P\d+)[^>]+ - - # End of tag - > - - # Video title (optional) - (?P[^<]+)? - """, re.VERBOSE) + _VIDEO_RE = re.compile(r'href="\s*/watch\?v=(?P<id>[0-9A-Za-z_-]{11})&[^"]*?index=(?P<index>\d+)[^>]+>(?P<title>[^<]+)?') IE_NAME = 'youtube:playlist' _TESTS = [{ 'url': 'https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re',