Initial commit
This commit is contained in:
committed by
Bill Thornton
parent
7671d08591
commit
e5a55daf55
@@ -10,6 +10,7 @@ import viewManager from '../viewManager/viewManager';
|
||||
import ServerConnections from '../ServerConnections';
|
||||
import alert from '../alert';
|
||||
import { ConnectionState } from '../../utils/jellyfin-apiclient/ConnectionState.ts';
|
||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/';
|
||||
|
||||
export const history = createHashHistory();
|
||||
|
||||
@@ -623,7 +624,7 @@ class AppRouter {
|
||||
return '#/details?seriesTimerId=' + id + '&serverId=' + serverId;
|
||||
}
|
||||
|
||||
if (item.CollectionType == 'livetv') {
|
||||
if (item.CollectionType == CollectionType.LiveTv) {
|
||||
return '#/livetv.html';
|
||||
}
|
||||
|
||||
@@ -662,7 +663,7 @@ class AppRouter {
|
||||
}
|
||||
|
||||
if (context !== 'folders' && !itemHelper.isLocalItem(item)) {
|
||||
if (item.CollectionType == 'movies') {
|
||||
if (item.CollectionType == 'Movies') {
|
||||
url = '#/movies.html?topParentId=' + item.Id;
|
||||
|
||||
if (options && options.section === 'latest') {
|
||||
@@ -672,7 +673,7 @@ class AppRouter {
|
||||
return url;
|
||||
}
|
||||
|
||||
if (item.CollectionType == 'tvshows') {
|
||||
if (item.CollectionType == CollectionType.TvShows) {
|
||||
url = '#/tv.html?topParentId=' + item.Id;
|
||||
|
||||
if (options && options.section === 'latest') {
|
||||
@@ -682,7 +683,7 @@ class AppRouter {
|
||||
return url;
|
||||
}
|
||||
|
||||
if (item.CollectionType == 'music') {
|
||||
if (item.CollectionType == CollectionType.Music) {
|
||||
url = '#/music.html?topParentId=' + item.Id;
|
||||
|
||||
if (options?.section === 'latest') {
|
||||
|
||||
Reference in New Issue
Block a user