1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-25 09:54:32 +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):
IE_NAME = 'Bandcamp:user'
_VALID_URL = r'https?://(?:(?P<subdomain>[^.]+)\.)?bandcamp\.com/?'
_VALID_URL = r'https?://(?:(?P<id>[^.]+)\.)?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)