aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extractors/bandcamp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/extractors/bandcamp.py b/extractors/bandcamp.py
index dd18f44..935a2d8 100644
--- a/extractors/bandcamp.py
+++ b/extractors/bandcamp.py
@@ -17,7 +17,8 @@ class bandcamp(Extractor):
soup = BeautifulSoup(r.text, 'html.parser')
items = soup.select('a[href]')
for item in items:
- if '/album' in item['href']:
+ if '/album' in item['href'] and \
+ not item['href'].startswith("http"):
url = self.root.rstrip('/') + item['href']
if url not in self._albums:
self._albums.append(url)