code cleanup (#743)

* update tools

* run code cleanup

* update dependencies
This commit is contained in:
Jason Dove
2022-04-19 17:47:18 -05:00
committed by GitHub
parent e250e93a8e
commit c02b83d0d6
1223 changed files with 5487 additions and 5547 deletions
+1 -1
View File
@@ -12,4 +12,4 @@ public class BaseError : NewType<BaseError, string>
public static class ErrorExtensions
{
public static BaseError Join(this Seq<BaseError> errors) => string.Join("; ", errors);
}
}
+1 -1
View File
@@ -25,4 +25,4 @@ public class Channel
public string PreferredAudioLanguageCode { get; set; }
public string PreferredSubtitleLanguageCode { get; set; }
public ChannelSubtitleMode SubtitleMode { get; set; }
}
}
+1 -1
View File
@@ -30,4 +30,4 @@ public enum ChannelWatermarkImageSource
{
Custom = 0,
ChannelLogo = 1
}
}
@@ -9,4 +9,4 @@ public class Collection
public List<CollectionItem> CollectionItems { get; set; }
public List<MultiCollection> MultiCollections { get; set; }
public List<MultiCollectionItem> MultiCollectionItems { get; set; }
}
}
@@ -7,4 +7,4 @@ public class CollectionItem
public int MediaItemId { get; set; }
public MediaItem MediaItem { get; set; }
public int? CustomIndex { get; set; }
}
}
@@ -8,4 +8,4 @@ public class MultiCollection
public List<SmartCollection> SmartCollections { get; set; }
public List<MultiCollectionItem> MultiCollectionItems { get; set; }
public List<MultiCollectionSmartItem> MultiCollectionSmartItems { get; set; }
}
}
@@ -8,4 +8,4 @@ public class MultiCollectionItem
public Collection Collection { get; set; }
public bool ScheduleAsGroup { get; set; }
public PlaybackOrder PlaybackOrder { get; set; }
}
}
@@ -8,4 +8,4 @@ public class MultiCollectionSmartItem
public SmartCollection SmartCollection { get; set; }
public bool ScheduleAsGroup { get; set; }
public PlaybackOrder PlaybackOrder { get; set; }
}
}
@@ -7,4 +7,4 @@ public class SmartCollection
public string Query { get; set; }
public List<MultiCollection> MultiCollections { get; set; }
public List<MultiCollectionSmartItem> MultiCollectionSmartItems { get; set; }
}
}
+1 -1
View File
@@ -10,4 +10,4 @@ public class TraktList
public string Description { get; set; }
public int ItemCount { get; set; }
public List<TraktListItem> Items { get; set; }
}
}
@@ -25,4 +25,4 @@ public class TraktListItem
TraktListItemKind.Season => $"{Title} ({Year}) S{Season:00}",
_ => $"{Title} ({Year}) S{Season:00}E{Episode:00}"
};
}
}
@@ -6,4 +6,4 @@ public class TraktListItemGuid
public string Guid { get; set; }
public int TraktListItemId { get; set; }
public TraktListItem TraktListItem { get; set; }
}
}
@@ -6,4 +6,4 @@ public enum TraktListItemKind
Show,
Season,
Episode
}
}
@@ -4,4 +4,4 @@ public class CollectionEnumeratorState
{
public int Seed { get; set; }
public int Index { get; set; }
}
}
+1 -1
View File
@@ -5,4 +5,4 @@ public class ConfigElement
public int Id { get; set; }
public string Key { get; set; }
public string Value { get; set; }
}
}
+1 -1
View File
@@ -33,4 +33,4 @@ public class ConfigElementKey
public static ConfigElementKey FillerPresetsPageSize => new("pages.filler_presets.page_size");
public static ConfigElementKey LibraryRefreshInterval => new("scanner.library_refresh_interval");
public static ConfigElementKey PlayoutDaysToBuild => new("playout.days_to_build");
}
}
+1 -1
View File
@@ -44,4 +44,4 @@ public record FFmpegProfile
NormalizeFramerate = false,
HardwareAcceleration = HardwareAccelerationKind.None
};
}
}
@@ -3,9 +3,9 @@
public enum FFmpegProfileAudioFormat
{
None = 0,
Aac = 1,
Ac3 = 2,
Copy = 99
}
@@ -3,10 +3,10 @@
public enum FFmpegProfileVideoFormat
{
None = 0,
H264 = 1,
Hevc = 2,
Mpeg2Video = 3,
Copy = 99
}
+1 -1
View File
@@ -8,4 +8,4 @@ public enum FillerKind
PostRoll = 3,
Tail = 4,
Fallback = 5
}
}
+1 -1
View File
@@ -6,4 +6,4 @@ public enum FillerMode
Duration = 1,
Count = 2,
Pad = 3
}
}
+1 -1
View File
@@ -18,4 +18,4 @@ public class FillerPreset
public MultiCollection MultiCollection { get; set; }
public int? SmartCollectionId { get; set; }
public SmartCollection SmartCollection { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public enum GuideMode
{
Normal = 0,
Filler = 1
}
}
@@ -7,4 +7,4 @@ public enum HardwareAccelerationKind
Nvenc = 2,
Vaapi = 3,
VideoToolbox = 4
}
}
+1 -1
View File
@@ -8,4 +8,4 @@ public class LanguageCode
public string TwoCode { get; set; }
public string EnglishName { get; set; }
public string FrenchName { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class EmbyLibrary : Library
{
public string ItemId { get; set; }
public bool ShouldSyncItems { get; set; }
}
}
@@ -4,4 +4,4 @@ public class JellyfinLibrary : Library
{
public string ItemId { get; set; }
public bool ShouldSyncItems { get; set; }
}
}
+1 -1
View File
@@ -11,4 +11,4 @@ public abstract class Library
public MediaSource MediaSource { get; set; }
public List<LibraryPath> Paths { get; set; }
}
}
@@ -7,4 +7,4 @@ public class LibraryFolder
public int LibraryPathId { get; set; }
public LibraryPath LibraryPath { get; set; }
public string Etag { get; set; }
}
}
@@ -7,4 +7,4 @@ public enum LibraryMediaKind
MusicVideos = 3,
OtherVideos = 4,
Songs = 5
}
}
+1 -1
View File
@@ -11,4 +11,4 @@ public class LibraryPath
public List<MediaItem> MediaItems { get; set; }
public List<LibraryFolder> LibraryFolders { get; set; }
}
}
+1 -1
View File
@@ -2,4 +2,4 @@
public class LocalLibrary : Library
{
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class PlexLibrary : Library
{
public string Key { get; set; }
public bool ShouldSyncItems { get; set; }
}
}
+1 -1
View File
@@ -6,4 +6,4 @@ public record LogEntry(
string Level,
string Exception,
string RenderedMessage,
string Properties);
string Properties);
+1 -1
View File
@@ -4,4 +4,4 @@ public class Artist : MediaItem
{
public List<MusicVideo> MusicVideos { get; set; }
public List<ArtistMetadata> ArtistMetadata { get; set; }
}
}
@@ -2,4 +2,4 @@
public class BackgroundImageMediaVersion : MediaVersion
{
}
}
@@ -2,4 +2,4 @@
public class CoverArtMediaVersion : MediaVersion
{
}
}
@@ -7,4 +7,4 @@ public class EmbyEpisode : Episode
{
public string ItemId { get; set; }
public string Etag { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class EmbyMovie : Movie
{
public string ItemId { get; set; }
public string Etag { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class EmbySeason : Season
{
public string ItemId { get; set; }
public string Etag { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class EmbyShow : Show
{
public string ItemId { get; set; }
public string Etag { get; set; }
}
}
+1 -1
View File
@@ -9,4 +9,4 @@ public class Episode : MediaItem
public Season Season { get; set; }
public List<EpisodeMetadata> EpisodeMetadata { get; set; }
public List<MediaVersion> MediaVersions { get; set; }
}
}
@@ -2,4 +2,4 @@
public class FallbackMediaVersion : MediaVersion
{
}
}
@@ -7,4 +7,4 @@ public class JellyfinEpisode : Episode
{
public string ItemId { get; set; }
public string Etag { get; set; }
}
}
@@ -4,4 +4,4 @@ public class JellyfinMovie : Movie
{
public string ItemId { get; set; }
public string Etag { get; set; }
}
}
@@ -4,4 +4,4 @@ public class JellyfinSeason : Season
{
public string ItemId { get; set; }
public string Etag { get; set; }
}
}
@@ -4,4 +4,4 @@ public class JellyfinShow : Show
{
public string ItemId { get; set; }
public string Etag { get; set; }
}
}
@@ -9,4 +9,4 @@ public class MediaChapter
public TimeSpan StartTime { get; set; }
public TimeSpan EndTime { get; set; }
public string Title { get; set; }
}
}
+1 -1
View File
@@ -7,4 +7,4 @@ public class MediaFile
public int MediaVersionId { get; set; }
public MediaVersion MediaVersion { get; set; }
}
}
+1 -1
View File
@@ -9,4 +9,4 @@ public class MediaItem
public List<CollectionItem> CollectionItems { get; set; }
public List<TraktListItem> TraktListItems { get; set; }
public MediaItemState State { get; set; }
}
}
@@ -19,4 +19,4 @@ public class MediaStream
public string MimeType { get; set; }
public int MediaVersionId { get; set; }
public MediaVersion MediaVersion { get; set; }
}
}
@@ -6,4 +6,4 @@ public enum MediaStreamKind
Audio = 2,
Subtitle = 3,
Attachment = 4
}
}
@@ -18,4 +18,4 @@ public class MediaVersion : IDisplaySize
public DateTime DateUpdated { get; set; }
public int Width { get; set; }
public int Height { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Movie : MediaItem
{
public List<MovieMetadata> MovieMetadata { get; set; }
public List<MediaVersion> MediaVersions { get; set; }
}
}
+1 -1
View File
@@ -6,4 +6,4 @@ public class MusicVideo : MediaItem
public Artist Artist { get; set; }
public List<MusicVideoMetadata> MusicVideoMetadata { get; set; }
public List<MediaVersion> MediaVersions { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class OtherVideo : MediaItem
{
public List<OtherVideoMetadata> OtherVideoMetadata { get; set; }
public List<MediaVersion> MediaVersions { get; set; }
}
}
@@ -3,4 +3,4 @@
public class PlexEpisode : Episode
{
public string Key { get; set; }
}
}
@@ -4,4 +4,4 @@ public class PlexMediaFile : MediaFile
{
public int PlexId { get; set; }
public string Key { get; set; }
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
public class PlexMovie : Movie
{
public string Key { get; set; }
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
public class PlexSeason : Season
{
public string Key { get; set; }
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
public class PlexShow : Show
{
public string Key { get; set; }
}
}
+1 -1
View File
@@ -8,4 +8,4 @@ public class Season : MediaItem
public List<Episode> Episodes { get; set; }
public List<SeasonMetadata> SeasonMetadata { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Show : MediaItem
{
public List<Season> Seasons { get; set; }
public List<ShowMetadata> ShowMetadata { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Song : MediaItem
{
public List<SongMetadata> SongMetadata { get; set; }
public List<MediaVersion> MediaVersions { get; set; }
}
}
@@ -5,4 +5,4 @@ public enum VideoScanKind
Unknown = 0,
Progressive = 1,
Interlaced = 2
}
}
@@ -6,4 +6,4 @@ public class EmbyConnection
public string Address { get; set; }
public int EmbyMediaSourceId { get; set; }
public EmbyMediaSource EmbyMediaSource { get; set; }
}
}
@@ -6,4 +6,4 @@ public class EmbyMediaSource : MediaSource
public string OperatingSystem { get; set; }
public List<EmbyConnection> Connections { get; set; }
public List<EmbyPathReplacement> PathReplacements { get; set; }
}
}
@@ -7,4 +7,4 @@ public class EmbyPathReplacement
public string LocalPath { get; set; }
public int EmbyMediaSourceId { get; set; }
public EmbyMediaSource EmbyMediaSource { get; set; }
}
}
@@ -6,4 +6,4 @@ public class JellyfinConnection
public string Address { get; set; }
public int JellyfinMediaSourceId { get; set; }
public JellyfinMediaSource JellyfinMediaSource { get; set; }
}
}
@@ -6,4 +6,4 @@ public class JellyfinMediaSource : MediaSource
public string OperatingSystem { get; set; }
public List<JellyfinConnection> Connections { get; set; }
public List<JellyfinPathReplacement> PathReplacements { get; set; }
}
}
@@ -7,4 +7,4 @@ public class JellyfinPathReplacement
public string LocalPath { get; set; }
public int JellyfinMediaSourceId { get; set; }
public JellyfinMediaSource JellyfinMediaSource { get; set; }
}
}
@@ -2,4 +2,4 @@
public class LocalMediaSource : MediaSource
{
}
}
@@ -5,4 +5,4 @@ public abstract class MediaSource
public int Id { get; set; }
public List<Library> Libraries { get; set; }
}
}
@@ -7,4 +7,4 @@ public class PlexConnection
public string Uri { get; set; }
public int PlexMediaSourceId { get; set; }
public PlexMediaSource PlexMediaSource { get; set; }
}
}
@@ -11,4 +11,4 @@ public class PlexMediaSource : MediaSource
// public bool IsOwned { get; set; }
public List<PlexConnection> Connections { get; set; }
public List<PlexPathReplacement> PathReplacements { get; set; }
}
}
@@ -7,4 +7,4 @@ public class PlexPathReplacement
public string LocalPath { get; set; }
public int PlexMediaSourceId { get; set; }
public PlexMediaSource PlexMediaSource { get; set; }
}
}
+1 -1
View File
@@ -8,4 +8,4 @@ public class Actor
public int? Order { get; set; }
public int? ArtworkId { get; set; }
public Artwork Artwork { get; set; }
}
}
@@ -9,4 +9,4 @@ public class ArtistMetadata : Metadata
public Artist Artist { get; set; }
public List<Style> Styles { get; set; }
public List<Mood> Moods { get; set; }
}
}
+1 -1
View File
@@ -11,4 +11,4 @@ public class Artwork
public ArtworkKind ArtworkKind { get; set; }
public DateTime DateAdded { get; set; }
public DateTime DateUpdated { get; set; }
}
}
+1 -1
View File
@@ -7,4 +7,4 @@ public enum ArtworkKind
Logo = 2,
FanArt = 3,
Watermark = 4
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Director
{
public int Id { get; set; }
public string Name { get; set; }
}
}
@@ -10,4 +10,4 @@ public class EpisodeMetadata : Metadata
public Episode Episode { get; set; }
public List<Director> Directors { get; set; }
public List<Writer> Writers { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Genre
{
public int Id { get; set; }
public string Name { get; set; }
}
}
+1 -1
View File
@@ -18,4 +18,4 @@ public class Metadata
public List<Actor> Actors { get; set; }
public List<MetadataGuid> Guids { get; set; }
public List<Subtitle> Subtitles { get; set; }
}
}
@@ -4,4 +4,4 @@ public class MetadataGuid
{
public int Id { get; set; }
public string Guid { get; set; }
}
}
@@ -6,4 +6,4 @@ public enum MetadataKind
Sidecar = 1,
External = 2,
Embedded = 3
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Mood
{
public int Id { get; set; }
public string Name { get; set; }
}
}
@@ -10,4 +10,4 @@ public class MovieMetadata : Metadata
public Movie Movie { get; set; }
public List<Director> Directors { get; set; }
public List<Writer> Writers { get; set; }
}
}
@@ -6,4 +6,4 @@ public class MusicVideoMetadata : Metadata
public string Plot { get; set; }
public int MusicVideoId { get; set; }
public MusicVideo MusicVideo { get; set; }
}
}
@@ -4,4 +4,4 @@ public class OtherVideoMetadata : Metadata
{
public int OtherVideoId { get; set; }
public OtherVideo OtherVideo { get; set; }
}
}
@@ -5,4 +5,4 @@ public class SeasonMetadata : Metadata
public string Outline { get; set; }
public int SeasonId { get; set; }
public Season Season { get; set; }
}
}
@@ -8,4 +8,4 @@ public class ShowMetadata : Metadata
public string Tagline { get; set; }
public int ShowId { get; set; }
public Show Show { get; set; }
}
}
@@ -9,4 +9,4 @@ public class SongMetadata : Metadata
public string Track { get; set; }
public int SongId { get; set; }
public Song Song { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Studio
{
public int Id { get; set; }
public string Name { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Style
{
public int Id { get; set; }
public string Name { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Tag
{
public int Id { get; set; }
public string Name { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public class Writer
{
public int Id { get; set; }
public string Name { get; set; }
}
}
+1 -1
View File
@@ -4,4 +4,4 @@ public enum MetadataSource
{
Fallback = 0,
Sidecar = 1
}
}
+1 -1
View File
@@ -6,4 +6,4 @@ public enum PlaybackOrder
Random = 2,
Shuffle = 3,
ShuffleInOrder = 4
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ public class Playout
public PlayoutAnchor Anchor { get; set; }
public List<PlayoutProgramScheduleAnchor> ProgramScheduleAnchors { get; set; }
public TimeSpan? DailyRebuildTime { get; set; }
}
}

Some files were not shown because too many files have changed in this diff Show More