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:
Arden Rasmussen
2026-01-10 10:21:39 -07:00
committed by GitHub
co-authored by ACX
parent 105f477c79
commit 4f012746c5
65 changed files with 923 additions and 52 deletions
@@ -1,4 +1,4 @@
import {MetadataRefreshOptions} from '../../features/metadata/model/request/metadata-refresh-options.model';
import { MetadataRefreshOptions } from '../../features/metadata/model/request/metadata-refresh-options.model';
export interface MetadataMatchWeights {
title: number;
@@ -24,6 +24,7 @@ export interface MetadataMatchWeights {
doubanRating: number;
doubanReviewCount: number;
lubimyczytacRating: number;
ranobedbRating: number;
coverImage: number;
}
@@ -48,6 +49,7 @@ export interface MetadataProviderSettings {
amazon: Amazon;
google: Google;
goodReads: Goodreads;
ranobedb: Ranobedb;
hardcover: Hardcover;
comicvine: Comicvine;
douban: Douban;
@@ -69,6 +71,10 @@ export interface Goodreads {
enabled: boolean;
}
export interface Ranobedb {
enabled: boolean;
}
export interface Hardcover {
enabled: boolean;
apiKey: string;
@@ -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`;