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

Remove games

This commit is contained in:
Claus Vium 2019-01-27 22:10:07 +01:00
parent 0474bcfa8f
commit 8e76f60a10
85 changed files with 47 additions and 515 deletions

View file

@ -55,7 +55,7 @@ define(['apphost', 'globalize'], function (appHost, globalize) {
function supportsAddingToCollection(item) {
var invalidTypes = ['Genre', 'MusicGenre', 'Studio', 'GameGenre', 'UserView', 'CollectionFolder', 'Audio', 'Program', 'Timer', 'SeriesTimer'];
var invalidTypes = ['Genre', 'MusicGenre', 'Studio', 'UserView', 'CollectionFolder', 'Audio', 'Program', 'Timer', 'SeriesTimer'];
if (item.Type === 'Recording') {
if (item.Status !== 'Completed') {
@ -155,7 +155,6 @@ define(['apphost', 'globalize'], function (appHost, globalize) {
if (itemType === "Movie" ||
itemType === "Trailer" ||
itemType === "Series" ||
itemType === "Game" ||
itemType === "BoxSet" ||
itemType === "Person" ||
itemType === "Book" ||
@ -268,7 +267,6 @@ define(['apphost', 'globalize'], function (appHost, globalize) {
if (item.Type === "Series" ||
item.Type === "Season" ||
item.Type === "BoxSet" ||
item.MediaType === "Game" ||
item.MediaType === "Book" ||
item.MediaType === "Recording") {
return true;
@ -297,7 +295,7 @@ define(['apphost', 'globalize'], function (appHost, globalize) {
}
var mediaType = item.MediaType;
if (mediaType === 'Book' || mediaType === 'Photo' || mediaType === 'Game' || mediaType === 'Audio') {
if (mediaType === 'Book' || mediaType === 'Photo' || mediaType === 'Audio') {
return false;
}
@ -363,4 +361,4 @@ define(['apphost', 'globalize'], function (appHost, globalize) {
return true;
}
};
});
});