mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-04 01:50:09 -06:00
18 lines
489 B
TypeScript
18 lines
489 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()
|
|
}
|
|
}); |