Files
jellyfin-n8n/credentials/JellyfinApi.credentials.ts
T
Dnny44 7ad2527e32
Build Jellyfin n8n Node / build (push) Failing after 3m3s
Inititalize Repo
2026-04-06 12:50:59 -05:00

32 lines
833 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',
properties: {
headers: {
'Authorization': '={{"MediaBrowser Token=" + $credentials.apiKey}}'
}
},
};
}