mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix movies sort by start/end air date on items routes
This commit is contained in:
parent
fc7926c2cc
commit
c14c0a6af5
@ -19,6 +19,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using EntityFrameworkCore.Projectables;
|
||||
using Kyoo.Abstractions.Controllers;
|
||||
@ -118,6 +119,14 @@ namespace Kyoo.Abstractions.Models
|
||||
/// <inheritdoc />
|
||||
public Image? Logo { get; set; }
|
||||
|
||||
[SerializeIgnore]
|
||||
[Column("air_date")]
|
||||
public DateTime? StartAir => AirDate;
|
||||
|
||||
[SerializeIgnore]
|
||||
[Column("air_date")]
|
||||
public DateTime? EndAir => AirDate;
|
||||
|
||||
/// <summary>
|
||||
/// A video of a few minutes that tease the content.
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user