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:
parent
efad4379be
commit
b3002b1578
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Maloja Scrobbler",
|
"name": "Maloja Scrobbler",
|
||||||
"version": "1.8",
|
"version": "1.9",
|
||||||
"description": "Scrobbles tracks from various sites to your Maloja server",
|
"description": "Scrobbles tracks from various sites to your Maloja server",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"permissions": [
|
"permissions": [
|
||||||
|
@ -3,7 +3,7 @@ maloja_scrobbler_selector_playbar = "//div[contains(@class,'PlayerControls')]"
|
|||||||
|
|
||||||
maloja_scrobbler_selector_metadata = ".//div[contains(@class,'PlayerControlsMetadata-container')]"
|
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_artist = ".//span[contains(@class,'MetadataPosterTitle-title')]/a[1]/@title"
|
||||||
maloja_scrobbler_selector_duration = ".//button[@data-qa-id='mediaDuration']/text()[3]"
|
maloja_scrobbler_selector_duration = ".//button[@data-qa-id='mediaDuration']/text()[3]"
|
||||||
|
|
||||||
|
@ -66,10 +66,10 @@ class APIHandler:
|
|||||||
exceptiontype = sys.exc_info()[0]
|
exceptiontype = sys.exc_info()[0]
|
||||||
if exceptiontype in self.errors:
|
if exceptiontype in self.errors:
|
||||||
response.status,result = self.errors[exceptiontype]
|
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:
|
else:
|
||||||
response.status,result = 500,{"status":"Unknown error","code":500}
|
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
|
return result
|
||||||
#else:
|
#else:
|
||||||
|
Loading…
Reference in New Issue
Block a user