plexsonic 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/src/server.js +1 -1
package/README.md
CHANGED
|
@@ -177,7 +177,7 @@ Plexsonic maps Subsonic rating + star state into a single Plex numeric rating:
|
|
|
177
177
|
|
|
178
178
|
Behavior:
|
|
179
179
|
- `setRating(r)` updates stars and keeps current like state when possible.
|
|
180
|
-
- `star` toggles like on and keeps star level. If unrated, it becomes `
|
|
180
|
+
- `star` toggles like on and keeps star level. If unrated, it becomes `10` points (liked + 5+star).
|
|
181
181
|
- `unstar` toggles like off and keeps star level.
|
|
182
182
|
|
|
183
183
|
## Expose to LAN
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plexsonic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "PlexMusic to OpenSubsonic bridge",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@fastify/session": "^11.1.1",
|
|
26
26
|
"argon2": "^0.44.0",
|
|
27
27
|
"better-sqlite3": "^12.6.2",
|
|
28
|
-
"dotenv": "^17.
|
|
28
|
+
"dotenv": "^17.3.1",
|
|
29
29
|
"fastify": "^5.7.4",
|
|
30
30
|
"pino-pretty": "^13.1.3"
|
|
31
31
|
},
|
package/src/server.js
CHANGED
|
@@ -997,7 +997,7 @@ function subsonicRatingToPlexRating(value, { liked = false } = {}) {
|
|
|
997
997
|
function toLikedPlexRating(value) {
|
|
998
998
|
const normalized = normalizePlexRatingInt(value);
|
|
999
999
|
if (normalized == null || normalized <= 0) {
|
|
1000
|
-
return
|
|
1000
|
+
return 10;
|
|
1001
1001
|
}
|
|
1002
1002
|
const stars = Math.max(1, Math.min(5, Math.ceil(normalized / 2)));
|
|
1003
1003
|
return stars * 2;
|