Browse Source

Add override keyword to Plex service

dev
David Ludwig 4 years ago
parent
commit
95b9f15f5c
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      services/plex/src/services/IpcInterface.ts
  2. +2
    -2
      services/plex/src/services/LibraryScan.ts
  3. +1
    -1
      services/plex/src/services/PlexLibrary.ts

+ 1
- 1
services/plex/src/services/IpcInterface.ts View File

@ -18,7 +18,7 @@ export default class IpcInterface extends IpcServerService
/** /**
* Install the message handlers * Install the message handlers
*/ */
protected installMessageHandlers() {
protected override installMessageHandlers() {
this.addMessageHandler("movie_links", this.movieLinks); this.addMessageHandler("movie_links", this.movieLinks);
} }


+ 2
- 2
services/plex/src/services/LibraryScan.ts View File

@ -47,7 +47,7 @@ export default class LibraryScan extends InternalService
/** /**
* Start the service * Start the service
*/ */
public start() {
public override start() {
this.plex = this.app.service<PlexLibrary>("Plex Library"); this.plex = this.app.service<PlexLibrary>("Plex Library");
this.search = this.app.service<SearchIpcClient>("Search"); this.search = this.app.service<SearchIpcClient>("Search");
this.scanInterval = setInterval(this.scanLibraries.bind(this), SCAN_FREQUENCY); this.scanInterval = setInterval(this.scanLibraries.bind(this), SCAN_FREQUENCY);
@ -57,7 +57,7 @@ export default class LibraryScan extends InternalService
/** /**
* Shutdown the service * Shutdown the service
*/ */
public async shutdown() {
public override async shutdown() {
if (this.scanInterval !== null) { if (this.scanInterval !== null) {
clearInterval(this.scanInterval); clearInterval(this.scanInterval);
} }


+ 1
- 1
services/plex/src/services/PlexLibrary.ts View File

@ -17,7 +17,7 @@ export default class PlexLibrary extends InternalService
/** /**
* Boot the service * Boot the service
*/ */
public async boot() {
public override async boot() {
let url = env("PLEX_URL"); let url = env("PLEX_URL");
let token = await secret(env("PLEX_TOKEN_FILE")); let token = await secret(env("PLEX_TOKEN_FILE"));
let moviesKey = env("PLEX_LIBRARY_MOVIES_KEY"); let moviesKey = env("PLEX_LIBRARY_MOVIES_KEY");


Loading…
Cancel
Save