Files
App/api/info.ts
Violet Caulfield 0481c9da68 smol fixes?
2025-01-20 09:43:30 -06:00

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()
}
});