add tvshow syntax to db
basic tvshow api request to show available tvshows limit randompage videos to 3 improve settings object to remove one useless copy
This commit is contained in:
@ -279,5 +279,6 @@ export enum APINode {
|
||||
Settings = 'settings',
|
||||
Tags = 'tags',
|
||||
Actor = 'actor',
|
||||
Video = 'video'
|
||||
Video = 'video',
|
||||
TVShow = 'tvshow'
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ import lighttheme from '../AppLightTheme.module.css';
|
||||
class StaticInfos {
|
||||
private darktheme: boolean = true;
|
||||
private videopath: string = '';
|
||||
private tvshowpath: string = '';
|
||||
|
||||
/**
|
||||
* check if the current theme is the dark theme
|
||||
@ -47,8 +48,9 @@ class StaticInfos {
|
||||
* set the current videopath
|
||||
* @param vidpath videopath with beginning and ending slash
|
||||
*/
|
||||
setVideoPath(vidpath: string): void {
|
||||
setVideoPaths(vidpath: string, tvshowpath: string): void {
|
||||
this.videopath = vidpath;
|
||||
this.tvshowpath = tvshowpath;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -58,6 +60,13 @@ class StaticInfos {
|
||||
return this.videopath;
|
||||
}
|
||||
|
||||
/**
|
||||
* return the current tvshow path
|
||||
*/
|
||||
getTVShowPath(): string {
|
||||
return this.tvshowpath;
|
||||
}
|
||||
|
||||
/**
|
||||
* load the Password page manually
|
||||
*/
|
||||
|
Reference in New Issue
Block a user