ShokoAnime / Shokofin

Repository for Shokofin, a plugin that brings Shoko to Jellyfin.
https://shokoanime.com
MIT License
140 stars 17 forks source link

Shokofin Status Display update on failure #64

Open Kaitou-3D opened 1 month ago

Kaitou-3D commented 1 month ago

Description

Ran into a bug that took me a few days to figure out because of a bad status message. I updated to latest Shokofin and Jellyfin, and there was an issue with the connection with my Shoko server instance occurred. However, the plugin shows a status of Active even when its in a failure state due to a bad connection. I didn't realize that there was an issue until I found this line in my logs.

[2024-07-22 09:23:25.470 -04:00] [WRN] [56] Shokofin.API.ShokoAPIClient: Unable to connect to complete the request to Shoko.
System.Net.Http.HttpRequestException: Invalid or expired API Token. Please reconnect the plugin to Shoko Server by resetting the connection or deleting and re-adding the user in the plugin settings.
   at Shokofin.API.ShokoAPIClient.Get(String url, HttpMethod method, String apiKey, Boolean skipApiKey)

Suggested Solution

Some way for the plugin to alert that there has been a connection issue.

Additional Information

No response

revam commented 1 month ago

I can see if there is an easy way for us to show notifications, though no promises since i don't know if it's possible yet.