diff --git a/auxiliary/chromium_scrobbler/maloja-scrobbler/manifest.json b/auxiliary/chromium_scrobbler/maloja-scrobbler/manifest.json index 976176a..1c252cd 100644 --- a/auxiliary/chromium_scrobbler/maloja-scrobbler/manifest.json +++ b/auxiliary/chromium_scrobbler/maloja-scrobbler/manifest.json @@ -1,6 +1,6 @@ { "name": "Maloja Scrobbler", - "version": "1.8", + "version": "1.9", "description": "Scrobbles tracks from various sites to your Maloja server", "manifest_version": 2, "permissions": [ diff --git a/auxiliary/chromium_scrobbler/maloja-scrobbler/sites/plex.js b/auxiliary/chromium_scrobbler/maloja-scrobbler/sites/plex.js index b81de28..0995ca4 100644 --- a/auxiliary/chromium_scrobbler/maloja-scrobbler/sites/plex.js +++ b/auxiliary/chromium_scrobbler/maloja-scrobbler/sites/plex.js @@ -3,7 +3,7 @@ maloja_scrobbler_selector_playbar = "//div[contains(@class,'PlayerControls')]" maloja_scrobbler_selector_metadata = ".//div[contains(@class,'PlayerControlsMetadata-container')]" -maloja_scrobbler_selector_title = ".//a[@data-qa-id='metadataTitleLink']/@title" +maloja_scrobbler_selector_title = ".//a[@data-testid='metadataTitleLink']/@title" maloja_scrobbler_selector_artist = ".//span[contains(@class,'MetadataPosterTitle-title')]/a[1]/@title" maloja_scrobbler_selector_duration = ".//button[@data-qa-id='mediaDuration']/text()[3]" diff --git a/maloja/apis/_base.py b/maloja/apis/_base.py index 22165c1..9a365d9 100644 --- a/maloja/apis/_base.py +++ b/maloja/apis/_base.py @@ -66,10 +66,10 @@ class APIHandler: exceptiontype = sys.exc_info()[0] if exceptiontype in self.errors: response.status,result = self.errors[exceptiontype] - log(f"Error with {self.__apiname__}: {result} ({exceptiontype})") + log(f"Error with {self.__apiname__} API: {exceptiontype} (Request: {path})") else: response.status,result = 500,{"status":"Unknown error","code":500} - log(f"Unhandled Exception with {self.__apiname__}: {exceptiontype}") + log(f"Unhandled Exception with {self.__apiname__} API: {exceptiontype} (Request: {path})") return result #else: