mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-29 03:34:32 +01:00
Added _match_id
This commit is contained in:
parent
e7bbe73f9d
commit
09066bec55
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user