1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed Plex scrobbling (new web interface)

This commit is contained in:
krateng 2022-01-26 07:34:17 +01:00
parent efad4379be
commit b3002b1578
3 changed files with 4 additions and 4 deletions

View File

@ -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": [

View File

@ -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]"

View File

@ -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: