mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-08 20:37:41 +00:00
migrations; torr search, dl, seed, delete; files scan, delete; configs
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { ConfigService } from './config.service';
|
||||
|
||||
export class RecentSearchesConfig {
|
||||
constructor(private readonly configService: ConfigService) {
|
||||
this.configService = configService;
|
||||
}
|
||||
|
||||
public getRecentSearchesFolder(): string {
|
||||
return this.configService
|
||||
.getPaths()
|
||||
.getPathByEnvKey('RECENT_SEARCHES_FOLDER');
|
||||
}
|
||||
|
||||
public getRecentSearchesLimit(): number {
|
||||
return parseInt(this.configService.getEnv('RECENT_SEARCHES_LIMIT'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user