diff --git a/services/torrent-search/src/services/IpcInterface.ts b/services/torrent-search/src/services/IpcInterface.ts index dee6090..a990617 100644 --- a/services/torrent-search/src/services/IpcInterface.ts +++ b/services/torrent-search/src/services/IpcInterface.ts @@ -23,14 +23,14 @@ export default class IpcInterface extends IpcServerService /** * Link the IPC service to other required internal services */ - public link(app: Microservice) { + public override link(app: Microservice) { this.search = app.service("Torrent Search"); } /** * Install the the event handlers */ - protected installMessageHandlers() { + protected override installMessageHandlers() { this.addMessageHandler("search_movie", this.searchMovie); } diff --git a/services/torrent-search/src/services/TorrentSearch.ts b/services/torrent-search/src/services/TorrentSearch.ts index 8159e45..e88310d 100644 --- a/services/torrent-search/src/services/TorrentSearch.ts +++ b/services/torrent-search/src/services/TorrentSearch.ts @@ -29,7 +29,7 @@ export default class TorrentSearch extends InternalService /** * Boot the torrent search sorvice */ - public async boot() { + public override async boot() { let providerClasses = Object.values(providers); this.providers = providerClasses.map(ProviderClass => new ProviderClass()); this.movieProviders = this.providers.filter(provider => provider.PROVIDES & MediaType.Movies); diff --git a/services/torrent-search/src/torrents/providers/rarbg/index.ts b/services/torrent-search/src/torrents/providers/rarbg/index.ts index d7c3947..12498ba 100644 --- a/services/torrent-search/src/torrents/providers/rarbg/index.ts +++ b/services/torrent-search/src/torrents/providers/rarbg/index.ts @@ -33,7 +33,7 @@ export default class Rarbg extends Provider /** * Since the API is sereverly broken, we need a bunch of retries */ - protected readonly SEARCH_RETRIES = 30; + protected override readonly SEARCH_RETRIES = 30; /** * Store the time when the API needs to re-authenticate @@ -48,14 +48,14 @@ export default class Rarbg extends Provider /** * Indicate if the API is currently authenticated */ - protected async isAuthenticated() { + protected override async isAuthenticated() { return Date.now() < this.nextAuthenticationTime; } /** * Authenticate the RARBG context */ - protected async authenticate() { + protected override async authenticate() { let now = Date.now(); let [status, response] = await jsonRequest( `${URL_BASE}&get_token=get_token` @@ -71,7 +71,7 @@ export default class Rarbg extends Provider /** * Search for a movie */ - public async searchMovieImdb(imdbId: string, movie: IMovieSearchInfo) { + public override async searchMovieImdb(imdbId: string, movie: IMovieSearchInfo) { let [_, response] = await jsonRequest( `${URL_BASE}&token=${this.token}` + `&mode=search&search_imdb=${imdbId}` diff --git a/services/torrent-search/src/torrents/providers/torrentgalaxy/index.ts b/services/torrent-search/src/torrents/providers/torrentgalaxy/index.ts index 6dacab1..75c38b3 100644 --- a/services/torrent-search/src/torrents/providers/torrentgalaxy/index.ts +++ b/services/torrent-search/src/torrents/providers/torrentgalaxy/index.ts @@ -23,7 +23,7 @@ export default class TorrentGalaxy extends Provider /** * Search for a movie */ - public async searchMovieImdb(imdbId: string, movie: IMovieSearchInfo) { + public override async searchMovieImdb(imdbId: string, movie: IMovieSearchInfo) { let torrents = await search(imdbId, undefined, Sort.Seeders); return torrents.torrents.map(torrent => this.createTorrent( movie, torrent.name, torrent.size,torrent.seeders, torrent.magnet