v1.5.9 (Actuel)
This commit is contained in:
@@ -29,12 +29,10 @@ function deduplicateByTitle(results: SearchResult[]): SearchResult[] {
|
||||
}
|
||||
|
||||
export class ZtTeamAPI implements ISource {
|
||||
name = 'ztteam';
|
||||
displayName = 'ZT (Team)';
|
||||
private baseUrl: string | undefined;
|
||||
|
||||
constructor(baseUrl?: string) {
|
||||
this.baseUrl = baseUrl?.replace(/\/$/, '');
|
||||
name = 'ztnews';
|
||||
displayName = 'Zone-Téléchargement (Team)';
|
||||
get baseUrl() {
|
||||
return CONFIG.ZTTEAM_URL?.replace(/\/$/, '');
|
||||
}
|
||||
|
||||
async healthCheck(): Promise<boolean> {
|
||||
@@ -132,4 +130,4 @@ export class ZtTeamAPI implements ISource {
|
||||
}
|
||||
}
|
||||
|
||||
sourceRegistry.register(new ZtTeamAPI(CONFIG.ZTTEAM_URL));
|
||||
sourceRegistry.register(new ZtTeamAPI());
|
||||
|
||||
Reference in New Issue
Block a user