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:
parent
e7bbe73f9d
commit
09066bec55
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user