diff options
author | neodarz <neodarz@neodarz.net> | 2020-08-15 15:24:15 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2020-08-15 15:24:15 +0200 |
commit | 321d1944940da9426067527a95ecb6d4dd140ace (patch) | |
tree | ee78510cf7ee1eb1dc22691bc9df8512643aa6c1 /extractors | |
parent | c4fb7fda5b1b6bb22db1f517f71cf393f68c6a9b (diff) | |
download | music_downloader-321d1944940da9426067527a95ecb6d4dd140ace.tar.xz music_downloader-321d1944940da9426067527a95ecb6d4dd140ace.zip |
Be more precise when serching album url
Diffstat (limited to 'extractors')
-rw-r--r-- | extractors/bandcamp.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |