Update missed capital changes

This commit is contained in:
TelepathicWalrus
2024-01-13 13:06:33 +00:00
committed by Bill Thornton
parent c6b3f8ad50
commit 42e76c9099
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -80,7 +80,7 @@ export function supportsAddingToPlaylist(item) {
if (isLocalItem(item)) {
return false;
}
if (item.CollectionType === CollectionType.LiveTv) {
if (item.CollectionType === CollectionType.Livetv) {
return false;
}
@@ -231,7 +231,7 @@ export function canConvert (item, user) {
}
const collectionType = item.CollectionType;
if (collectionType === CollectionType.LiveTv) {
if (collectionType === CollectionType.Livetv) {
return false;
}
@@ -250,7 +250,7 @@ export function canConvert (item, user) {
export function canRefreshMetadata (item, user) {
if (user.Policy.IsAdministrator) {
const collectionType = item.CollectionType;
if (collectionType === CollectionType.LiveTv) {
if (collectionType === CollectionType.Livetv) {
return false;
}
+2 -2
View File
@@ -624,7 +624,7 @@ class AppRouter {
return '#/details?seriesTimerId=' + id + '&serverId=' + serverId;
}
if (item.CollectionType == CollectionType.LiveTv) {
if (item.CollectionType == CollectionType.Livetv) {
return '#/livetv.html';
}
@@ -673,7 +673,7 @@ class AppRouter {
return url;
}
if (item.CollectionType == CollectionType.TvShows) {
if (item.CollectionType == CollectionType.Tvshows) {
url = '#/tv.html?topParentId=' + item.Id;
if (options && options.section === 'latest') {
+3 -3
View File
@@ -309,7 +309,7 @@ function getItems(instance, params, item, sortBy, startIndex, limit) {
query.IncludeItemTypes = 'MusicAlbum';
} else if (item.CollectionType === CollectionType.Movies) {
query.IncludeItemTypes = 'Movie';
} else if (item.CollectionType === CollectionType.TvShows) {
} else if (item.CollectionType === CollectionType.Tvshows) {
query.IncludeItemTypes = 'Series';
} else if (item.Type === 'Genre') {
query.IncludeItemTypes = 'Movie,Series,Video';
@@ -866,7 +866,7 @@ class ItemsView {
// Folder, Playlist views
&& itemType !== 'UserView'
// Only Photo (homevideos) CollectionFolders are supported
&& !(itemType === 'CollectionFolder' && item?.CollectionType !== CollectionType.HomeVideos)
&& !(itemType === 'CollectionFolder' && item?.CollectionType !== CollectionType.Homevideos)
) {
// Show Play All buttons
hideOrShowAll(view.querySelectorAll('.btnPlay'), false);
@@ -879,7 +879,7 @@ class ItemsView {
// Folder, Playlist views
&& itemType !== 'UserView'
// Only Photo (homevideos) CollectionFolders are supported
&& !(itemType === 'CollectionFolder' && item?.CollectionType !== CollectionType.HomeVideos)
&& !(itemType === 'CollectionFolder' && item?.CollectionType !== CollectionType.Homevideos)
) {
// Show Shuffle buttons
hideOrShowAll(view.querySelectorAll('.btnShuffle'), false);