Files
jellyfin-n8n/credentials/JellyfinApi.credentials.ts
Dnny44 b0c78499d9
Build Jellyfin n8n Node / build (push) Failing after 1m14s
Fix Type issue
2026-04-06 13:23:21 -05:00

32 lines
842 B
TypeScript

import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class JellyfinApi implements ICredentialType {
name = 'jellyfinApi';
displayName = 'Jellyfin API';
documentationUrl = 'https://api.jellyfin.org/';
properties: INodeProperties[] = [
{
displayName: 'Server URL',
name: 'url',
type: 'string',
default: 'http://localhost:8096',
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
authenticate = {
type: 'generic' as const,
properties: {
headers: {
'Authorization': '={{"MediaBrowser Token=" + $credentials.apiKey}}'
}
},
};
}