1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Initial commit

This commit is contained in:
TelepathicWalrus 2023-12-06 17:57:35 +00:00 committed by Bill Thornton
parent 7671d08591
commit e5a55daf55
20 changed files with 46 additions and 56 deletions

View file

@ -1,5 +1,6 @@
import { appHost } from './apphost';
import globalize from '../scripts/globalize';
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/';
export function getDisplayName(item, options = {}) {
if (!item) {
@ -79,7 +80,7 @@ export function supportsAddingToPlaylist(item) {
if (isLocalItem(item)) {
return false;
}
if (item.CollectionType === 'livetv') {
if (item.CollectionType === CollectionType.LiveTv) {
return false;
}
@ -230,7 +231,7 @@ export function canConvert (item, user) {
}
const collectionType = item.CollectionType;
if (collectionType === 'livetv') {
if (collectionType === CollectionType.LiveTv) {
return false;
}
@ -249,7 +250,7 @@ export function canConvert (item, user) {
export function canRefreshMetadata (item, user) {
if (user.Policy.IsAdministrator) {
const collectionType = item.CollectionType;
if (collectionType === 'livetv') {
if (collectionType === CollectionType.LiveTv) {
return false;
}