change the matching <script> type attribute (#171)

master
Nightdavisao 2020-10-16 21:29:07 -03:00 committed by GitHub
parent 4a5e14b8f1
commit 0b9ce91621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class BandcampJSON:
def get_js(self):
"""Get <script> element containing the data we need and return the raw JS"""
logging.debug(" Grabbing embedded scripts..")
embedded_scripts_raw = [self.body.find("script", {"type": "application/json+ld"}).string]
embedded_scripts_raw = [self.body.find("script", {"type": "application/ld+json"}).string]
for script in self.body.find_all('script'):
try:
album_info = script['data-tralbum']