migrations; torr search, dl, seed, delete; files scan, delete; configs

This commit is contained in:
Jurgis Sakalauskas
2023-02-03 17:41:40 +02:00
parent 8d354027fc
commit daaeda539b
84 changed files with 5456 additions and 301 deletions
@@ -0,0 +1,24 @@
import { SearchClientInterface } from '../Interface/search-client.interface';
import { LinkomanijaClient } from '../LinkomanijaClient/linkomanija.client';
import { Injectable } from '@nestjs/common';
import { TorrentSearchClientResponse } from '../../Dto/torrent-search-client-response.dto';
/**
* Bridge is needed as it seems you cannot inject providers from other modules using factory in module level
*/
@Injectable()
export class LinkomanijaClientBridge implements SearchClientInterface {
clientName: string;
constructor(private readonly client: LinkomanijaClient) {
this.clientName = client.clientName;
}
search(query: string) {
return this.client.search(query);
}
customMenu(path: string): Promise<TorrentSearchClientResponse> {
return this.client.customMenu(path);
}
}