Compare commits
1 Commits
v2.0.0
...
test-ip-fo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fdd4dcd847 |
@@ -133,6 +133,11 @@ class JellyfinAPI extends ExternalAPI {
|
|||||||
}
|
}
|
||||||
: {};
|
: {};
|
||||||
|
|
||||||
|
logger.debug(`Logging in to Jellyfin server: ${this.jellyfinHost}`, {
|
||||||
|
label: 'Jellyfin API',
|
||||||
|
ip: ClientIP,
|
||||||
|
});
|
||||||
|
|
||||||
const authResponse = await this.post<JellyfinLoginResponse>(
|
const authResponse = await this.post<JellyfinLoginResponse>(
|
||||||
'/Users/AuthenticateByName',
|
'/Users/AuthenticateByName',
|
||||||
{
|
{
|
||||||
@@ -143,9 +148,17 @@ class JellyfinAPI extends ExternalAPI {
|
|||||||
headers: headers,
|
headers: headers,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
logger.debug(`Logged in to Jellyfin server: ${this.jellyfinHost}`, {
|
||||||
|
label: 'Jellyfin API',
|
||||||
|
response: authResponse,
|
||||||
|
});
|
||||||
|
|
||||||
return authResponse;
|
return authResponse;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
logger.debug(e, {
|
||||||
|
label: 'Jellyfin API',
|
||||||
|
});
|
||||||
|
|
||||||
const status = e.response?.status;
|
const status = e.response?.status;
|
||||||
|
|
||||||
const networkErrorCodes = new Set([
|
const networkErrorCodes = new Set([
|
||||||
|
|||||||
Reference in New Issue
Block a user