Same case now works for Volumes.
Fixed a bug in the Kavita+ code that wasn't properly parsing out weblinks
This commit is contained in:
parent
0a2604dbd4
commit
7b35990e40
3 changed files with 7 additions and 4 deletions
|
@ -829,12 +829,12 @@ public class ScrobblingService : IScrobblingService
|
|||
if (!webLink.StartsWith(website)) continue;
|
||||
var tokens = webLink.Split(website)[1].Split('/');
|
||||
var value = tokens[index];
|
||||
if (typeof(T) == typeof(int))
|
||||
if (typeof(T) == typeof(int?))
|
||||
{
|
||||
if (int.TryParse(value, out var intValue))
|
||||
return (T)(object)intValue;
|
||||
}
|
||||
else if (typeof(T) == typeof(long))
|
||||
else if (typeof(T) == typeof(long?))
|
||||
{
|
||||
if (long.TryParse(value, out var longValue))
|
||||
return (T)(object)longValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue