[bandcamp] Exclude merch links (#3368)

Closes #3318
Authored by: Yipten
This commit is contained in:
Yipten 2022-04-23 22:40:20 -04:00 committed by GitHub
parent 52c2af8298
commit 96b49af01c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ class BandcampUserIE(InfoExtractor):
uploader = self._match_id(url)
webpage = self._download_webpage(url, uploader)
discography_data = (re.findall(r'<li data-item-id=["\'][^>]+>\s*<a href=["\']([^"\']+)', webpage)
discography_data = (re.findall(r'<li data-item-id=["\'][^>]+>\s*<a href=["\'](?![^"\'/]*?/merch)([^"\']+)', webpage)
or re.findall(r'<div[^>]+trackTitle["\'][^"\']+["\']([^"\']+)', webpage))
return self.playlist_from_matches(