mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-04 01:44:17 +02:00
Handle unauthorized kavita
This commit is contained in:
@ -23,6 +23,8 @@ public abstract class LibraryConnector : GlobalBase
|
||||
Log($"Creating libraryConnector {Enum.GetName(libraryType)}");
|
||||
if (!baseUrlRex.IsMatch(baseUrl))
|
||||
throw new ArgumentException("Base url does not match pattern");
|
||||
if(auth == "")
|
||||
throw new ArgumentNullException(nameof(auth), "Auth can not be empty");
|
||||
this.baseUrl = baseUrlRex.Match(baseUrl).Value;
|
||||
this.auth = auth;
|
||||
this.libraryType = libraryType;
|
||||
|
Reference in New Issue
Block a user