RanobeDB Light Novel metadata provider (#2221)
* 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>
This commit is contained in:
@@ -47,7 +47,8 @@ describe('AppSettingsService', () => {
|
||||
hardcover: {enabled: false, apiKey: ''},
|
||||
comicvine: {enabled: false, apiKey: ''},
|
||||
douban: {enabled: false},
|
||||
lubimyczytac: {enabled: false}
|
||||
lubimyczytac: {enabled: false},
|
||||
ranobedb: {enabled: false}
|
||||
},
|
||||
metadataMatchWeights: {
|
||||
title: 0,
|
||||
@@ -73,6 +74,7 @@ describe('AppSettingsService', () => {
|
||||
doubanRating: 0,
|
||||
doubanReviewCount: 0,
|
||||
lubimyczytacRating: 0,
|
||||
ranobedbRating: 0,
|
||||
coverImage: 0
|
||||
},
|
||||
metadataPersistenceSettings: {
|
||||
@@ -398,7 +400,8 @@ describe('AppSettingsService - API Contract Tests', () => {
|
||||
hardcover: {enabled: false, apiKey: ''},
|
||||
comicvine: {enabled: false, apiKey: ''},
|
||||
douban: {enabled: false},
|
||||
lubimyczytac: {enabled: false}
|
||||
lubimyczytac: {enabled: false},
|
||||
ranobedb: {enabled: false}
|
||||
},
|
||||
metadataMatchWeights: {
|
||||
title: 0,
|
||||
@@ -424,6 +427,7 @@ describe('AppSettingsService - API Contract Tests', () => {
|
||||
doubanRating: 0,
|
||||
doubanReviewCount: 0,
|
||||
lubimyczytacRating: 0,
|
||||
ranobedbRating: 0,
|
||||
coverImage: 0
|
||||
},
|
||||
metadataPersistenceSettings: {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {inject, Injectable} from '@angular/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {API_CONFIG} from '../../core/config/api-config';
|
||||
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'})
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class MetadataMatchWeightsService {
|
||||
private readonly baseUrl = `${API_CONFIG.BASE_URL}/api/v1`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user