1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-25 18:04:33 +01:00

Added _match_id

This commit is contained in:
Lyz 2019-03-08 13:08:03 +01:00
parent 16efa6ebcc
commit 57f736fbf6
No known key found for this signature in database
GPG Key ID: 6C7D7C1612CDE02F

View File

@ -412,7 +412,7 @@ class BandcampWeeklyIE(InfoExtractor):
class BandcampUserIE(InfoExtractor): class BandcampUserIE(InfoExtractor):
IE_NAME = 'Bandcamp:user' IE_NAME = 'Bandcamp:user'
_VALID_URL = r'https?://(?:(?P<subdomain>[^.]+)\.)?bandcamp\.com/?' _VALID_URL = r'https?://(?:(?P<id>[^.]+)\.)?bandcamp\.com/?'
_TESTS = [{ _TESTS = [{
'url': 'https://adrianvonziegler.bandcamp.com', 'url': 'https://adrianvonziegler.bandcamp.com',
@ -431,8 +431,7 @@ class BandcampUserIE(InfoExtractor):
}] }]
def _real_extract(self, url): def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url) uploader = self._match_id(url)
uploader = mobj.group('subdomain')
webpage = self._download_webpage(url, uploader) webpage = self._download_webpage(url, uploader)