mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-21 13:30:11 -06:00
21 lines
494 B
TypeScript
21 lines
494 B
TypeScript
import { Jellyfin } from '@jellyfin/sdk'
|
|
import { getModel, getUniqueIdSync } from 'react-native-device-info'
|
|
import { name, version } from '../package.json'
|
|
import { capitalize } from 'lodash'
|
|
|
|
console.debug(`Building Jellyfin Info`)
|
|
|
|
/**
|
|
* Client object that represents Jellify on the Jellyfin server.
|
|
*/
|
|
export const JellyfinInfo: Jellyfin = new Jellyfin({
|
|
clientInfo: {
|
|
name: capitalize(name),
|
|
version: version,
|
|
},
|
|
deviceInfo: {
|
|
name: getModel(),
|
|
id: getUniqueIdSync(),
|
|
},
|
|
})
|