Use the popup image instead of the thumbnail (#163)

The thumbnail is often 700x700 in resolution, the pop-up image tends
to be 1200x1200.

For use in music libraries, where the album art may be displayed. It's
preferable to fetch the original resolution album art.
master
BourgondAries 2020-09-26 22:33:17 +02:00 committed by GitHub
parent b5da676752
commit 4f8c28e3b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class Bandcamp:
:return: url as str
"""
try:
url = self.soup.find(id='tralbumArt').find_all('img')[0]['src']
url = self.soup.find(id='tralbumArt').find_all('a')[0]['href']
return url
except None:
pass