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