* add explicit warning for zero/invalid duration media items * set dateadded on plex media versions * add media stream table * save local media streams to db * save plex media streams to db * add preferred language settings (no validation) * use preferred language if possible * code cleanup * proper language code validation * force scan of all libraries to pull in media streams
23 lines
745 B
C#
23 lines
745 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ErsatzTV.Core.Domain
|
|
{
|
|
public class Channel
|
|
{
|
|
public static string NumberValidator = @"^[0-9]+(\.[0-9])?$";
|
|
|
|
public Channel(Guid uniqueId) => UniqueId = uniqueId;
|
|
public int Id { get; set; }
|
|
public Guid UniqueId { get; init; }
|
|
public string Number { get; set; }
|
|
public string Name { get; set; }
|
|
public int FFmpegProfileId { get; set; }
|
|
public FFmpegProfile FFmpegProfile { get; set; }
|
|
public StreamingMode StreamingMode { get; set; }
|
|
public List<Playout> Playouts { get; set; }
|
|
public List<Artwork> Artwork { get; set; }
|
|
public string PreferredLanguageCode { get; set; }
|
|
}
|
|
}
|