@@ -16,11 +16,11 @@ namespace MusicBeePlugin
16
16
{
17
17
public static class Subsonic
18
18
{
19
- private const int TagCount = 13 ;
19
+ private const int TagCount = 14 ;
20
20
private const string ApiVersion = "1.13.0" ;
21
21
private const string CaptionServerError = "Error reported from Server" ;
22
22
private static SubsonicSettings _currentSettings ;
23
- private static SubsonicSettings . ServerType _serverType = SubsonicSettings . ServerType . Subsonic ;
23
+ private static SubsonicSettings . ServerType _serverType ;
24
24
public static bool IsInitialized ;
25
25
public static string SettingsFilename ;
26
26
public static string CacheFilename ;
@@ -77,8 +77,7 @@ public static bool PingServer(SubsonicSettings settings)
77
77
} ;
78
78
var response = SendRequest ( request ) ;
79
79
_serverType = GetServerTypeFromResponse ( response ) ;
80
- var isPingOk = IsPingOk ( response ) ;
81
- return isPingOk ;
80
+ return IsPingOk ( response ) ;
82
81
}
83
82
catch ( Exception ex )
84
83
{
@@ -1160,6 +1159,7 @@ private static KeyValuePair<byte, string>[] GetTags(Child child, string baseFold
1160
1159
tags [ 12 ] = new KeyValuePair < byte , string > ( ( byte ) Interfaces . Plugin . MetaDataType . RatingLove ,
1161
1160
child . starred != default ? "L" : "" ) ;
1162
1161
tags [ 13 ] = new KeyValuePair < byte , string > ( ( byte ) Interfaces . Plugin . MetaDataType . Custom16 , child . id ?? "" ) ;
1162
+ tags [ 14 ] = new KeyValuePair < byte , string > ( ( byte ) Interfaces . Plugin . MetaDataType . Rating , child . userRating . ToString ( ) ) ;
1163
1163
1164
1164
return tags ;
1165
1165
}
@@ -1197,6 +1197,7 @@ private static KeyValuePair<byte, string>[] GetTags(LibreSonicAPI.Child child, s
1197
1197
tags [ 12 ] = new KeyValuePair < byte , string > ( ( byte ) Interfaces . Plugin . MetaDataType . RatingLove ,
1198
1198
child . starred != default ? "L" : "" ) ;
1199
1199
tags [ 13 ] = new KeyValuePair < byte , string > ( ( byte ) Interfaces . Plugin . MetaDataType . Custom16 , child . id ?? "" ) ;
1200
+ tags [ 14 ] = new KeyValuePair < byte , string > ( ( byte ) Interfaces . Plugin . MetaDataType . Rating , child . userRating . ToString ( ) ) ;
1200
1201
1201
1202
return tags ;
1202
1203
}
0 commit comments