mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-08 20:37:41 +00:00
16 lines
408 B
TypeScript
16 lines
408 B
TypeScript
import { ConfigService } from './config.service';
|
|
|
|
export class RecentSearchesConfig {
|
|
constructor(private readonly configService: ConfigService) {
|
|
this.configService = configService;
|
|
}
|
|
|
|
public getRecentSearchesFolder(): string {
|
|
return '/srv/data/recent-searches';
|
|
}
|
|
|
|
public getRecentSearchesLimit(): number {
|
|
return parseInt(this.configService.getEnv('RECENT_SEARCHES_LIMIT'));
|
|
}
|
|
}
|