feat(frontend): add ShowSummary, SeasonSummary types + library shows/seasons API methods

This commit is contained in:
2026-03-20 01:14:43 +01:00
parent 23722a771b
commit dd69470ee4
3 changed files with 36 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ use sqlx::SqlitePool;
use domain::{
ContentType, DomainError, DomainResult, ILibraryRepository,
LibraryCollection, LibraryItem, LibrarySearchFilter, LibrarySyncLogEntry, LibrarySyncResult,
SeasonSummary, ShowSummary,
};
pub struct SqliteLibraryRepository {
@@ -72,6 +73,9 @@ impl ILibraryRepository for SqliteLibraryRepository {
.collect();
conditions.push(format!("({})", genre_conditions.join(" OR ")));
}
if let Some(sn) = filter.season_number {
conditions.push(format!("season_number = {}", sn));
}
let where_clause = if conditions.is_empty() {
String::new()