Feat/lubimyczytac metadata provider (#2019)

* feat: add LubimyCzytac metadata provider

- Add LubimyCzytac parser with web scraping for lubimyczytac.pl
- Extract book metadata including title, authors, description, ratings
- Parse JSON-LD structured data for reliable metadata extraction
- Add database migration with columns and JSON property name updates
- Add comprehensive test coverage for parser

* feat: add LubimyCzytac UI integration

- Add LC ID and LC Rating fields to metadata picker
- Update settings page with Lubimyczytac provider toggle
- Add LubimyCzytac to metadata searcher provider list
- Display Lubimyczytac in all metadata viewer sections
- Add Lubimyczytac to advanced fetch options
- Update TypeScript models to match backend serialization
This commit is contained in:
Marcin Gajewski
2025-12-28 19:50:53 -07:00
committed by GitHub
parent e65aa47552
commit dfcd9db368
24 changed files with 758 additions and 14 deletions
@@ -145,6 +145,15 @@
</div>
</div>
</div>
<div class="provider-item">
<div class="provider-control">
<div class="provider-info">
<p-checkbox [(ngModel)]="lubimyCzytacEnabled" [binary]="true"></p-checkbox>
<label class="provider-label">Lubimyczytac</label>
</div>
</div>
</div>
</div>
<div class="setting-actions">
@@ -76,6 +76,7 @@ export class MetadataProviderSettingsComponent implements OnInit {
comicvineEnabled: boolean = false;
comicvineToken: string = '';
doubanEnabled: boolean = false;
lubimyCzytacEnabled: boolean = false;
private appSettingsService = inject(AppSettingsService);
private messageService = inject(MessageService);
@@ -101,6 +102,7 @@ export class MetadataProviderSettingsComponent implements OnInit {
this.comicvineEnabled = metadataProviderSettings?.comicvine?.enabled ?? false;
this.comicvineToken = metadataProviderSettings?.comicvine?.apiKey ?? '';
this.doubanEnabled = metadataProviderSettings?.douban?.enabled ?? false;
this.lubimyCzytacEnabled = metadataProviderSettings?.lubimyczytac?.enabled ?? false;
});
}
@@ -143,7 +145,8 @@ export class MetadataProviderSettingsComponent implements OnInit {
enabled: this.hardcoverEnabled,
apiKey: this.hardcoverToken.trim()
},
douban: {enabled: this.doubanEnabled}
douban: {enabled: this.doubanEnabled},
lubimyczytac: {enabled: this.lubimyCzytacEnabled}
}
}
];
@@ -215,6 +215,8 @@ export class LibraryMetadataSettingsComponent implements OnInit {
goodreadsReviewCount: {p1: null, p2: null, p3: null, p4: null},
hardcoverRating: {p1: null, p2: null, p3: null, p4: null},
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},
moods: {p1: null, p2: null, p3: null, p4: null},
tags: {p1: null, p2: null, p3: null, p4: null}
}