From e36ec0fdaae5ba5ca9ea2c138d357d3900a7b0e6 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Thu, 22 Dec 2022 08:40:54 +0100 Subject: [PATCH] [pr0gramm] remove misplaced comment, uncapture regex-group --- youtube_dl/extractor/pr0gramm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/extractor/pr0gramm.py b/youtube_dl/extractor/pr0gramm.py index 378773af6..bfe26ee47 100644 --- a/youtube_dl/extractor/pr0gramm.py +++ b/youtube_dl/extractor/pr0gramm.py @@ -80,7 +80,7 @@ class Pr0grammStaticIE(InfoExtractor): class Pr0grammIE(InfoExtractor): # https://pr0gramm.com/new/546637 # https://pr0gramm.com/new/video/546637 - _VALID_URL = r'https?://pr0gramm\.com/(?:new|top)/([^/]+/)?(?P[0-9]+)' + _VALID_URL = r'https?://pr0gramm\.com/(?:new|top)/(?:[^/]+/)?(?P[0-9]+)' _TEST = { 'url': 'https://pr0gramm.com/new/video/5466437', 'info_dict': { @@ -98,7 +98,6 @@ class Pr0grammIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) - # Since t return self.url_result( 'https://pr0gramm.com/static/' + video_id, video_id=video_id,