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
@@ -44,7 +44,8 @@ export class MetadataMatchWeightsComponent implements OnInit {
goodreadsRating: 'Goodreads Rating',
goodreadsReviewCount: 'Goodreads Rating #',
hardcoverRating: 'Hardcover Rating',
hardcoverReviewCount: 'Hardcover Rating #'
hardcoverReviewCount: 'Hardcover Rating #',
ranobedbRating: 'Ranobedb Rating',
};
form!: FormGroup;
@@ -79,6 +80,7 @@ export class MetadataMatchWeightsComponent implements OnInit {
goodreadsReviewCount: [0, [Validators.required, Validators.min(0)]],
hardcoverRating: [0, [Validators.required, Validators.min(0)]],
hardcoverReviewCount: [0, [Validators.required, Validators.min(0)]],
ranobedbRating: [0, [Validators.required, Validators.min(0)]],
coverImage: [0, [Validators.required, Validators.min(0)]],
});
this.appSettings$
@@ -154,6 +154,15 @@
</div>
</div>
</div>
<div class="provider-item">
<div class="provider-control">
<div class="provider-info">
<p-checkbox [(ngModel)]="ranobedbEnabled" [binary]="true"></p-checkbox>
<label class="provider-label">Ranobedb</label>
</div>
</div>
</div>
</div>
<div class="setting-actions">
@@ -77,6 +77,7 @@ export class MetadataProviderSettingsComponent implements OnInit {
comicvineToken: string = '';
doubanEnabled: boolean = false;
lubimyCzytacEnabled: boolean = false;
ranobedbEnabled: boolean = false;
private appSettingsService = inject(AppSettingsService);
private messageService = inject(MessageService);
@@ -103,6 +104,7 @@ export class MetadataProviderSettingsComponent implements OnInit {
this.comicvineToken = metadataProviderSettings?.comicvine?.apiKey ?? '';
this.doubanEnabled = metadataProviderSettings?.douban?.enabled ?? false;
this.lubimyCzytacEnabled = metadataProviderSettings?.lubimyczytac?.enabled ?? false;
this.ranobedbEnabled = metadataProviderSettings?.ranobedb?.enabled ?? false;
});
}
@@ -146,7 +148,8 @@ export class MetadataProviderSettingsComponent implements OnInit {
apiKey: this.hardcoverToken.trim()
},
douban: {enabled: this.doubanEnabled},
lubimyczytac: {enabled: this.lubimyCzytacEnabled}
lubimyczytac: {enabled: this.lubimyCzytacEnabled},
ranobedb: {enabled: this.ranobedbEnabled}
}
}
];
@@ -217,6 +217,8 @@ export class LibraryMetadataSettingsComponent implements OnInit {
hardcoverReviewCount: {p1: null, p2: null, p3: null, p4: null},
lubimyczytacId: {p1: null, p2: null, p3: null, p4: null},
lubimyczytacRating: {p1: null, p2: null, p3: null, p4: null},
ranobedbId: {p1: null, p2: null, p3: null, p4: null},
ranobedbRating: {p1: null, p2: null, p3: null, p4: null},
moods: {p1: null, p2: null, p3: null, p4: null},
tags: {p1: null, p2: null, p3: null, p4: null}
}
@@ -47,6 +47,7 @@ export class ViewPreferencesComponent implements OnInit, OnDestroy {
{label: 'Goodreads #', field: 'goodreadsReviewCount'},
{label: 'Hardcover Rating', field: 'hardcoverRating'},
{label: 'Hardcover #', field: 'hardcoverReviewCount'},
{label: 'Ranobedb Rating', field: 'ranobedbRating'},
{label: 'Pages', field: 'pageCount'},
{label: 'Random', field: 'random'},
];