* feat(metadata): added ranobedb metadata provider for light novels * fix(metadata): remove ranobedb review count and fix merge conflicts * test(metadata): added unit tests for RanobeDB parser * fix(metadata): add ranobedb to updated metadata searcher --------- Co-authored-by: ACX <8075870+acx10@users.noreply.github.com>
16 lines
519 B
TypeScript
16 lines
519 B
TypeScript
import { inject, Injectable } from '@angular/core';
|
|
import { HttpClient } from '@angular/common/http';
|
|
import { Observable } from 'rxjs';
|
|
import { API_CONFIG } from '../../core/config/api-config';
|
|
|
|
@Injectable({ providedIn: 'root' })
|
|
export class MetadataMatchWeightsService {
|
|
private readonly baseUrl = `${API_CONFIG.BASE_URL}/api/v1`;
|
|
|
|
private http = inject(HttpClient);
|
|
|
|
recalculateAll(): Observable<void> {
|
|
return this.http.post<void>(`${this.baseUrl}/books/metadata/recalculate-match-scores`, {});
|
|
}
|
|
}
|