From 09066bec550913fd52e994fe99d079013580d993 Mon Sep 17 00:00:00 2001 From: Lyz Date: Fri, 8 Mar 2019 13:08:03 +0100 Subject: [PATCH] Added _match_id --- youtube_dl/extractor/bandcamp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index 0906ec8f5..9e299b7bf 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -412,7 +412,7 @@ class BandcampWeeklyIE(InfoExtractor): class BandcampUserIE(InfoExtractor): IE_NAME = 'Bandcamp:user' - _VALID_URL = r'https?://(?:(?P[^.]+)\.)?bandcamp\.com/?' + _VALID_URL = r'https?://(?:(?P[^.]+)\.)?bandcamp\.com/?' _TESTS = [{ 'url': 'https://adrianvonziegler.bandcamp.com', @@ -431,8 +431,7 @@ class BandcampUserIE(InfoExtractor): }] def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - uploader = mobj.group('subdomain') + uploader = self._match_id(url) webpage = self._download_webpage(url, uploader)