From 321d1944940da9426067527a95ecb6d4dd140ace Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 15 Aug 2020 15:24:15 +0200 Subject: Be more precise when serching album url --- extractors/bandcamp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractors/bandcamp.py b/extractors/bandcamp.py index cc383ae..fbcfba3 100644 --- a/extractors/bandcamp.py +++ b/extractors/bandcamp.py @@ -17,7 +17,7 @@ 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']: url = self.root.rstrip('/') + item['href'] if url not in self._albums: self._albums.append(url) -- cgit v1.2.1