Move library entities to folder.

pull/4018/head
Patrick Barron 4 years ago
parent 8510333bcc
commit 414bedbde4

@ -4,10 +4,10 @@ using System.Linq;
using Jellyfin.Api.Constants; using Jellyfin.Api.Constants;
using Jellyfin.Api.Extensions; using Jellyfin.Api.Extensions;
using Jellyfin.Api.Helpers; using Jellyfin.Api.Helpers;
using Jellyfin.Data.Entities;
using Jellyfin.Data.Enums; using Jellyfin.Data.Enums;
using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Dto;
using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Dto; using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities; using MediaBrowser.Model.Entities;

@ -19,6 +19,7 @@ using MediaBrowser.Controller.Dto;
using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Audio; using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Entities.Movies; using MediaBrowser.Controller.Entities.Movies;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.LiveTv; using MediaBrowser.Controller.LiveTv;
using MediaBrowser.Controller.Net; using MediaBrowser.Controller.Net;
@ -35,8 +36,6 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Book = MediaBrowser.Controller.Entities.Book; using Book = MediaBrowser.Controller.Entities.Book;
using Movie = Jellyfin.Data.Entities.Movie;
using MusicAlbum = Jellyfin.Data.Entities.MusicAlbum;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers
{ {

@ -10,6 +10,7 @@ using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Dto;
using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Movies;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.LiveTv; using MediaBrowser.Controller.LiveTv;
using MediaBrowser.Model.Dto; using MediaBrowser.Model.Dto;
@ -181,7 +182,7 @@ namespace Jellyfin.Api.Controllers
DtoOptions dtoOptions, DtoOptions dtoOptions,
RecommendationType type) RecommendationType type)
{ {
var itemTypes = new List<string> { nameof(MediaBrowser.Controller.Entities.Movies.Movie) }; var itemTypes = new List<string> { nameof(Movie) };
if (_serverConfigurationManager.Configuration.EnableExternalContentInSuggestions) if (_serverConfigurationManager.Configuration.EnableExternalContentInSuggestions)
{ {
itemTypes.Add(nameof(Trailer)); itemTypes.Add(nameof(Trailer));

@ -3,7 +3,7 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Artwork public partial class Artwork
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Book : LibraryItem public partial class Book : LibraryItem
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class BookMetadata : Metadata public partial class BookMetadata : Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Chapter public partial class Chapter
{ {

@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Collection public partial class Collection
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class CollectionItem public partial class CollectionItem
{ {

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Company public partial class Company
{ {

@ -3,7 +3,7 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class CompanyMetadata : Metadata public partial class CompanyMetadata : Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class CustomItem : LibraryItem public partial class CustomItem : LibraryItem
{ {

@ -2,7 +2,7 @@
using System; using System;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class CustomItemMetadata : Metadata public partial class CustomItemMetadata : Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Episode : LibraryItem public partial class Episode : LibraryItem
{ {

@ -3,7 +3,7 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class EpisodeMetadata : Metadata public partial class EpisodeMetadata : Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Genre public partial class Genre
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Library public partial class Library
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public abstract partial class LibraryItem public abstract partial class LibraryItem
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class LibraryRoot public partial class LibraryRoot
{ {

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class MediaFile public partial class MediaFile
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class MediaFileStream public partial class MediaFileStream
{ {

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public abstract partial class Metadata public abstract partial class Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class MetadataProvider public partial class MetadataProvider
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class MetadataProviderId public partial class MetadataProviderId
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Movie : LibraryItem public partial class Movie : LibraryItem
{ {

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class MovieMetadata : Metadata public partial class MovieMetadata : Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class MusicAlbum : LibraryItem public partial class MusicAlbum : LibraryItem
{ {

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class MusicAlbumMetadata : Metadata public partial class MusicAlbumMetadata : Metadata
{ {

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Person public partial class Person
{ {

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class PersonRole public partial class PersonRole
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Photo : LibraryItem public partial class Photo : LibraryItem
{ {

@ -1,9 +1,8 @@
#pragma warning disable CS1591 #pragma warning disable CS1591
using System; using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class PhotoMetadata : Metadata public partial class PhotoMetadata : Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Rating public partial class Rating
{ {

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
/// <summary> /// <summary>
/// This is the entity to store review ratings, not age ratings. /// This is the entity to store review ratings, not age ratings.

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Release public partial class Release
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Season : LibraryItem public partial class Season : LibraryItem
{ {

@ -2,9 +2,8 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class SeasonMetadata : Metadata public partial class SeasonMetadata : Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Series : LibraryItem public partial class Series : LibraryItem
{ {

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class SeriesMetadata : Metadata public partial class SeriesMetadata : Metadata
{ {

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class Track : LibraryItem public partial class Track : LibraryItem
{ {

@ -2,7 +2,7 @@
using System; using System;
namespace Jellyfin.Data.Entities namespace Jellyfin.Data.Entities.Libraries
{ {
public partial class TrackMetadata : Metadata public partial class TrackMetadata : Metadata
{ {
Loading…
Cancel
Save