mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-27 20:01:57 +01:00
19 lines
406 B
JavaScript
19 lines
406 B
JavaScript
|
|
||
|
const { ApiClient } = require('jellyfin-apiclient');
|
||
|
const CONFIG = require('../config.json');
|
||
|
const os = require('os');
|
||
|
|
||
|
var jellyfinClient;
|
||
|
|
||
|
function init(){
|
||
|
jellyfinClient = new ApiClient(CONFIG["server-adress"], CONFIG["jellyfin-app-name"], "0.0.1", os.hostname(), os.hostname());
|
||
|
}
|
||
|
|
||
|
function getJellyfinClient(){
|
||
|
return jellyfinClient;
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
getJellyfinClient,
|
||
|
init
|
||
|
}
|