Files
App/api/info.ts
Violet Caulfield a00cd9b8c5 Revert "Updates"
This reverts commit 45422e0e14.
2025-02-06 22:33:08 -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()
}
});