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.Extensions;
using Jellyfin.Api.Helpers;
using Jellyfin.Data.Entities;
using Jellyfin.Data.Enums;
using MediaBrowser.Controller.Dto;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -4,7 +4,7 @@ using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Jellyfin.Data.Entities
namespace Jellyfin.Data.Entities.Libraries
{
/// <summary>
/// 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.Schema;
namespace Jellyfin.Data.Entities
namespace Jellyfin.Data.Entities.Libraries
{
public partial class Release
{

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

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

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

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

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

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