mirror of
https://github.com/jellyfin/jellyfin-plugin-trakt.git
synced 2024-11-27 15:50:29 +00:00
add error handling
This commit is contained in:
parent
73544a4d72
commit
5d33a1d341
@ -30,6 +30,10 @@ namespace Trakt.Helpers
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(tUser.UserName) || string.IsNullOrWhiteSpace(tUser.Password))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Guid traktUserGuid;
|
||||
if (Guid.TryParse(tUser.LinkedMbUserId, out traktUserGuid) && traktUserGuid.Equals(userGuid))
|
||||
|
Loading…
Reference in New Issue
Block a user