diff --git a/back/src/Kyoo.Abstractions/Models/Resources/Collection.cs b/back/src/Kyoo.Abstractions/Models/Resources/Collection.cs index f2539a55..caa6a13a 100644 --- a/back/src/Kyoo.Abstractions/Models/Resources/Collection.cs +++ b/back/src/Kyoo.Abstractions/Models/Resources/Collection.cs @@ -28,7 +28,14 @@ namespace Kyoo.Abstractions.Models; /// /// A class representing collections of . /// -public class Collection : IQuery, IResource, IMetadata, IThumbnails, IAddedDate, IRefreshable, ILibraryItem +public class Collection + : IQuery, + IResource, + IMetadata, + IThumbnails, + IAddedDate, + IRefreshable, + ILibraryItem { public static Sort DefaultSort => new Sort.By(nameof(Collection.Name)); diff --git a/back/src/Kyoo.Postgresql/DatabaseContext.cs b/back/src/Kyoo.Postgresql/DatabaseContext.cs index 6f655a4b..31e7b40f 100644 --- a/back/src/Kyoo.Postgresql/DatabaseContext.cs +++ b/back/src/Kyoo.Postgresql/DatabaseContext.cs @@ -220,7 +220,8 @@ public abstract class DatabaseContext : DbContext where T : class, IRefreshable { // schedule a refresh soon since metadata can change frequently for recently added items ond online databases - builder.Entity() + builder + .Entity() .Property(x => x.NextMetadataRefresh) .HasDefaultValueSql("now() at time zone 'utc' + interval '2 hours'") .ValueGeneratedOnAdd(); diff --git a/scanner/providers/implementations/thexem.py b/scanner/providers/implementations/thexem.py index 474dd549..744ff566 100644 --- a/scanner/providers/implementations/thexem.py +++ b/scanner/providers/implementations/thexem.py @@ -229,7 +229,9 @@ class TheXem(Provider): async def identify_season(self, show_id: str, season: int) -> Season: return await self._base.identify_season(show_id, season) - async def identify_episode(self, show_id: str, season: Optional[int], episode_nbr: int, absolute: int) -> Episode: + async def identify_episode( + self, show_id: str, season: Optional[int], episode_nbr: int, absolute: int + ) -> Episode: return await self._base.identify_episode(show_id, season, episode_nbr, absolute) async def identify_collection(self, provider_id: str) -> Collection: diff --git a/scanner/providers/types/episode.py b/scanner/providers/types/episode.py index 89272b03..0401d4ee 100644 --- a/scanner/providers/types/episode.py +++ b/scanner/providers/types/episode.py @@ -13,6 +13,7 @@ class PartialShow: original_language: Optional[str] external_id: dict[str, MetadataID] + @dataclass class EpisodeID: show_id: str