mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-16 07:50:04 -06:00
19 lines
453 B
TypeScript
19 lines
453 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'
|
|
|
|
/**
|
|
* 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(),
|
|
},
|
|
})
|