Comments (4)
Thanks for reporting.
Copying pastebin into GH issue.
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.EnsureSuccessStatusCode(HttpResponseMessage response, HttpRequestOptions options)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsyncInternal(HttpRequestOptions options, HttpMethod httpMethod)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsync(HttpRequestOptions options, HttpMethod httpMethod)
at Jellyfin.Plugin.Lastfm.Api.BaseLastfmApiClient.Post[TRequest,TResponse](TRequest request)
at Jellyfin.Plugin.Lastfm.Api.LastfmApiClient.Scrobble(Audio item, LastfmUser user)", name="NANI THE FUCK!!", track="NANI THE FUCK!!", artist="���ら", album="�ー�ん!", mbid=null```
from jellyfin-plugin-lastfm.
additional error messages
[2019-09-28 09:42:40.153 +00:00] [ERR] HTTP request failed with message: "{\"error\":13,\"message\":\"Invalid method signature supplied\"}"
[2019-09-28 09:42:40.166 +00:00] [ERR] Failed to send now playing for track: ex="MediaBrowser.Model.Net.HttpException: Bad Request
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.EnsureSuccessStatusCode(HttpResponseMessage response, HttpRequestOptions options)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsyncInternal(HttpRequestOptions options, HttpMethod httpMethod)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsync(HttpRequestOptions options, HttpMethod httpMethod)
at Jellyfin.Plugin.Lastfm.Api.BaseLastfmApiClient.Post[TRequest,TResponse](TRequest request)
at Jellyfin.Plugin.Lastfm.Api.LastfmApiClient.NowPlaying(Audio item, LastfmUser user)", name="NANI THE FUCK!!", track="NANI THE FUCK!!", artist="かめりあ", album="ごーいん", mbid=null
from jellyfin-plugin-lastfm.
regarding -> [2019-09-28 09:42:40.153 +00:00] [ERR] HTTP request failed with message: "{\"error\":13,\"message\":\"Invalid method signature supplied\"}"
Some notes at https://www.last.fm/api/authspec#8 regarding the auth API spec . This point seems to stand out and is not adhered to Ensure your parameters are utf8 encoded
. it could be a one-line fix.
diff --git a/Jellyfin.Plugin.Lastfm/Utils/Helpers.cs b/Jellyfin.Plugin.Lastfm/Utils/Helpers.cs
index 0bb4b25..9d619b5 100644
--- a/Jellyfin.Plugin.Lastfm/Utils/Helpers.cs
+++ b/Jellyfin.Plugin.Lastfm/Utils/Helpers.cs
@@ -16,7 +16,7 @@
// Use input string to calculate MD5 hash
var md5 = MD5.Create();
- var inputBytes = Encoding.ASCII.GetBytes(input);
+ var inputBytes = Encoding.UTF8.GetBytes(input);
var hashBytes = md5.ComputeHash(inputBytes);
// Convert the byte array to hexadecimal string
After rebuilding, it seems to scrobble ok. Will test some more and submit a new build/version
[2019-09-28 10:12:57.493 +00:00] [INF] Setting range response values for "/media/かめりあ - ごーいん/NANI THE FUCK!!.mp3". RangeRequest: "bytes=0-" Content-Length: "774434", Content-Range: "bytes 0-774433/774434"
[2019-09-28 10:12:57.673 +00:00] [INF] last-fm data: [("api_key": "XXX"), ("method": "track.updateNowPlaying"), ("sk": "XX"), ("track": "NANI THE FUCK!!"), ("artist": "かめりあ"), ("duration": "27"), ("album": "ごーいん"), ("api_sig": "XX")]
[2019-09-28 10:12:58.091 +00:00] [INF] "jw76" is now playing artist="かめりあ", track="NANI THE FUCK!!", album="ごーいん"
[2019-09-28 10:13:24.817 +00:00] [INF] Playback stopped reported by app "Jellyfin Web" "10.3.7" playing "NANI THE FUCK!!". Stopped at "27252" ms
[2019-09-28 10:13:24.838 +00:00] [INF] last-fm data: [("api_key": "XX"), ("method": "track.scrobble"), ("sk": "XX"), ("track": "NANI THE FUCK!!"), ("artist": "かめりあ"), ("timestamp": "1569665605"), ("album": "ごーいん"), ("api_sig": "XX")]
[2019-09-28 10:13:24.933 +00:00] [INF] "jw76" played artist="かめりあ", track="NANI THE FUCK!!", album="ごーいん"
from jellyfin-plugin-lastfm.
Fixed in b318f53
Published https://github.com/jesseward/jellyfin-plugin-lastfm/releases/tag/v2.0.1 release
from jellyfin-plugin-lastfm.
Related Issues (20)
- 10.8.0 support HOT 21
- Does not scrobble album artist HOT 1
- If name of song is single word addon favourites all songs of that name by every artist when syncing with Last.fm. HOT 2
- Only the last-played track is scrobbled HOT 2
- 10.8.4 Not available
- Plugin crashes on startup due to incompatible shared libraries. HOT 3
- Retrieved 0 lovedTracks s from LastFM for user HOT 3
- Scrobbles should happen earlier, not at the end of the song being played.
- Authentication Failed - You do not have permissions to access this service HOT 9
- [BUG REPORT] Scrobbles not going through using Feishin if "Sync favourites for this user?" is not checked
- Scrobble request should use time the track started playing, not the current time
- Not able to scobble when Playing through 3rd Party Apps HOT 3
- Feature request: Top songs in artist page HOT 2
- Plugin crashes Jellyfin when trying to sync favourited track that has no metadata HOT 3
- Repeated scrobbles if jellyfin is left idle without stopping playback HOT 10
- Can't find the option to add metadata HOT 2
- Please also scrobble music videos!
- Plugin does not work anymore with jellyfin 10.9.0 HOT 5
- Plugin shows as non supported on Jellyfin 10.9.0 HOT 3
- Cannot select user in plugin settings HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jellyfin-plugin-lastfm.