mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Format code
This commit is contained in:
parent
9255695af2
commit
ec88da2434
@ -28,7 +28,14 @@ namespace Kyoo.Abstractions.Models;
|
||||
/// <summary>
|
||||
/// A class representing collections of <see cref="Show"/>.
|
||||
/// </summary>
|
||||
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<Collection>.By(nameof(Collection.Name));
|
||||
|
||||
|
@ -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<T>()
|
||||
builder
|
||||
.Entity<T>()
|
||||
.Property(x => x.NextMetadataRefresh)
|
||||
.HasDefaultValueSql("now() at time zone 'utc' + interval '2 hours'")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
@ -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:
|
||||
|
@ -13,6 +13,7 @@ class PartialShow:
|
||||
original_language: Optional[str]
|
||||
external_id: dict[str, MetadataID]
|
||||
|
||||
|
||||
@dataclass
|
||||
class EpisodeID:
|
||||
show_id: str
|
||||
|
Loading…
x
Reference in New Issue
Block a user