mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 13:14:29 -04:00
CodingStyle: Adding empty lines between elements
This commit is contained in:
parent
ef63acced2
commit
2d3659d0b9
@ -143,6 +143,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
/// <returns>The resource found</returns>
|
/// <returns>The resource found</returns>
|
||||||
[ItemNotNull]
|
[ItemNotNull]
|
||||||
Task<T> Get(string slug);
|
Task<T> Get(string slug);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get the first resource that match the predicate.
|
/// Get the first resource that match the predicate.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -159,6 +160,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
/// <returns>The resource found</returns>
|
/// <returns>The resource found</returns>
|
||||||
[ItemCanBeNull]
|
[ItemCanBeNull]
|
||||||
Task<T> GetOrDefault(int id);
|
Task<T> GetOrDefault(int id);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get a resource from it's slug or null if it is not found.
|
/// Get a resource from it's slug or null if it is not found.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -166,6 +168,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
/// <returns>The resource found</returns>
|
/// <returns>The resource found</returns>
|
||||||
[ItemCanBeNull]
|
[ItemCanBeNull]
|
||||||
Task<T> GetOrDefault(string slug);
|
Task<T> GetOrDefault(string slug);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get the first resource that match the predicate or null if it is not found.
|
/// Get the first resource that match the predicate or null if it is not found.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -193,6 +196,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
Task<ICollection<T>> GetAll(Expression<Func<T, bool>> where = null,
|
Task<ICollection<T>> GetAll(Expression<Func<T, bool>> where = null,
|
||||||
Sort<T> sort = default,
|
Sort<T> sort = default,
|
||||||
Pagination limit = default);
|
Pagination limit = default);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get every resources that match all filters
|
/// Get every resources that match all filters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -246,12 +250,14 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
/// <param name="id">The ID of the resource</param>
|
/// <param name="id">The ID of the resource</param>
|
||||||
/// <exception cref="ItemNotFoundException">If the item is not found</exception>
|
/// <exception cref="ItemNotFoundException">If the item is not found</exception>
|
||||||
Task Delete(int id);
|
Task Delete(int id);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete a resource by it's slug
|
/// Delete a resource by it's slug
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="slug">The slug of the resource</param>
|
/// <param name="slug">The slug of the resource</param>
|
||||||
/// <exception cref="ItemNotFoundException">If the item is not found</exception>
|
/// <exception cref="ItemNotFoundException">If the item is not found</exception>
|
||||||
Task Delete(string slug);
|
Task Delete(string slug);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete a resource
|
/// Delete a resource
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -344,6 +350,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
/// <exception cref="ItemNotFoundException">If the item is not found</exception>
|
/// <exception cref="ItemNotFoundException">If the item is not found</exception>
|
||||||
/// <returns>The episode found</returns>
|
/// <returns>The episode found</returns>
|
||||||
Task<Episode> Get(int showID, int seasonNumber, int episodeNumber);
|
Task<Episode> Get(int showID, int seasonNumber, int episodeNumber);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get a episode from it's show slug, it's seasonNumber and it's episode number.
|
/// Get a episode from it's show slug, it's seasonNumber and it's episode number.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -362,6 +369,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
/// <param name="episodeNumber">The episode's number</param>
|
/// <param name="episodeNumber">The episode's number</param>
|
||||||
/// <returns>The episode found</returns>
|
/// <returns>The episode found</returns>
|
||||||
Task<Episode> GetOrDefault(int showID, int seasonNumber, int episodeNumber);
|
Task<Episode> GetOrDefault(int showID, int seasonNumber, int episodeNumber);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get a episode from it's show slug, it's seasonNumber and it's episode number or null if it is not found.
|
/// Get a episode from it's show slug, it's seasonNumber and it's episode number or null if it is not found.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -379,6 +387,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
/// <exception cref="ItemNotFoundException">If the item is not found</exception>
|
/// <exception cref="ItemNotFoundException">If the item is not found</exception>
|
||||||
/// <returns>The episode found</returns>
|
/// <returns>The episode found</returns>
|
||||||
Task<Episode> GetAbsolute(int showID, int absoluteNumber);
|
Task<Episode> GetAbsolute(int showID, int absoluteNumber);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get a episode from it's showID and it's absolute number.
|
/// Get a episode from it's showID and it's absolute number.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -416,6 +425,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
Expression<Func<LibraryItem, bool>> where = null,
|
Expression<Func<LibraryItem, bool>> where = null,
|
||||||
Sort<LibraryItem> sort = default,
|
Sort<LibraryItem> sort = default,
|
||||||
Pagination limit = default);
|
Pagination limit = default);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get items (A wrapper around shows or collections) from a library.
|
/// Get items (A wrapper around shows or collections) from a library.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -442,6 +452,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
Expression<Func<LibraryItem, bool>> where = null,
|
Expression<Func<LibraryItem, bool>> where = null,
|
||||||
Sort<LibraryItem> sort = default,
|
Sort<LibraryItem> sort = default,
|
||||||
Pagination limit = default);
|
Pagination limit = default);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get items (A wrapper around shows or collections) from a library.
|
/// Get items (A wrapper around shows or collections) from a library.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -489,6 +500,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
Expression<Func<PeopleRole, bool>> where = null,
|
Expression<Func<PeopleRole, bool>> where = null,
|
||||||
Sort<PeopleRole> sort = default,
|
Sort<PeopleRole> sort = default,
|
||||||
Pagination limit = default);
|
Pagination limit = default);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get people's roles from a show.
|
/// Get people's roles from a show.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -515,6 +527,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
Expression<Func<PeopleRole, bool>> where = null,
|
Expression<Func<PeopleRole, bool>> where = null,
|
||||||
Sort<PeopleRole> sort = default,
|
Sort<PeopleRole> sort = default,
|
||||||
Pagination limit = default);
|
Pagination limit = default);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get people's roles from a show.
|
/// Get people's roles from a show.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -541,6 +554,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
Expression<Func<PeopleRole, bool>> where = null,
|
Expression<Func<PeopleRole, bool>> where = null,
|
||||||
Sort<PeopleRole> sort = default,
|
Sort<PeopleRole> sort = default,
|
||||||
Pagination limit = default);
|
Pagination limit = default);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get people's roles from a person.
|
/// Get people's roles from a person.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -567,6 +581,7 @@ namespace Kyoo.Abstractions.Controllers
|
|||||||
Expression<Func<PeopleRole, bool>> where = null,
|
Expression<Func<PeopleRole, bool>> where = null,
|
||||||
Sort<PeopleRole> sort = default,
|
Sort<PeopleRole> sort = default,
|
||||||
Pagination limit = default);
|
Pagination limit = default);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get people's roles from a person.
|
/// Get people's roles from a person.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -26,6 +26,7 @@ namespace Kyoo.Abstractions.Models
|
|||||||
/// The ID of the People playing the role.
|
/// The ID of the People playing the role.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int PeopleID { get; set; }
|
public int PeopleID { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The people that played this role.
|
/// The people that played this role.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -35,6 +36,7 @@ namespace Kyoo.Abstractions.Models
|
|||||||
/// The ID of the Show where the People playing in.
|
/// The ID of the Show where the People playing in.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ShowID { get; set; }
|
public int ShowID { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The show where the People played in.
|
/// The show where the People played in.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -44,6 +44,7 @@ namespace Kyoo.Abstractions.Models
|
|||||||
/// The ID of the Show containing this season.
|
/// The ID of the Show containing this season.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SerializeIgnore] public int ShowID { get; set; }
|
[SerializeIgnore] public int ShowID { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The show that contains this season.
|
/// The show that contains this season.
|
||||||
/// This must be explicitly loaded via a call to <see cref="ILibraryManager.Load"/>.
|
/// This must be explicitly loaded via a call to <see cref="ILibraryManager.Load"/>.
|
||||||
|
@ -14,10 +14,12 @@ namespace Kyoo.Authentication.Models
|
|||||||
/// The path of the certificate file.
|
/// The path of the certificate file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string File { get; set; }
|
public string File { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The path of the old certificate file.
|
/// The path of the old certificate file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string OldFile { get; set; }
|
public string OldFile { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The password of the certificates.
|
/// The password of the certificates.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -33,10 +33,12 @@ namespace Kyoo.Authentication.Views
|
|||||||
/// The repository to handle users.
|
/// The repository to handle users.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IUserRepository _users;
|
private readonly IUserRepository _users;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A file manager to send profile pictures
|
/// A file manager to send profile pictures
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IFileSystem _files;
|
private readonly IFileSystem _files;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Options about authentication. Those options are monitored and reloads are supported.
|
/// Options about authentication. Those options are monitored and reloads are supported.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -105,10 +105,12 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The path of the request to forward.
|
/// The path of the request to forward.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly Uri _path;
|
private readonly Uri _path;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Should the proxied result support ranges requests?
|
/// Should the proxied result support ranges requests?
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly bool _rangeSupport;
|
private readonly bool _rangeSupport;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If not null, override the content type of the resulting request.
|
/// If not null, override the content type of the resulting request.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -19,26 +19,37 @@ namespace Kyoo.Core.Controllers
|
|||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ILibraryRepository LibraryRepository { get; }
|
public ILibraryRepository LibraryRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ILibraryItemRepository LibraryItemRepository { get; }
|
public ILibraryItemRepository LibraryItemRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ICollectionRepository CollectionRepository { get; }
|
public ICollectionRepository CollectionRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IShowRepository ShowRepository { get; }
|
public IShowRepository ShowRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ISeasonRepository SeasonRepository { get; }
|
public ISeasonRepository SeasonRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IEpisodeRepository EpisodeRepository { get; }
|
public IEpisodeRepository EpisodeRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ITrackRepository TrackRepository { get; }
|
public ITrackRepository TrackRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IPeopleRepository PeopleRepository { get; }
|
public IPeopleRepository PeopleRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IStudioRepository StudioRepository { get; }
|
public IStudioRepository StudioRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IGenreRepository GenreRepository { get; }
|
public IGenreRepository GenreRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IProviderRepository ProviderRepository { get; }
|
public IProviderRepository ProviderRepository { get; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IUserRepository UserRepository { get; }
|
public IUserRepository UserRepository { get; }
|
||||||
|
|
||||||
|
@ -22,10 +22,12 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The service provider. It allow plugin's activation.
|
/// The service provider. It allow plugin's activation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IServiceProvider _provider;
|
private readonly IServiceProvider _provider;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The configuration to get the plugin's directory.
|
/// The configuration to get the plugin's directory.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IOptions<BasicOptions> _options;
|
private readonly IOptions<BasicOptions> _options;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The logger used by this class.
|
/// The logger used by this class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -23,6 +23,7 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The configuration of kyoo to retrieve the identifier regex.
|
/// The configuration of kyoo to retrieve the identifier regex.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IOptionsMonitor<MediaOptions> _configuration;
|
private readonly IOptionsMonitor<MediaOptions> _configuration;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The library manager used to retrieve libraries paths.
|
/// The library manager used to retrieve libraries paths.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -21,10 +21,12 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The database handle
|
/// The database handle
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly DatabaseContext _database;
|
private readonly DatabaseContext _database;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A provider repository to handle externalID creation and deletion
|
/// A provider repository to handle externalID creation and deletion
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IProviderRepository _providers;
|
private readonly IProviderRepository _providers;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A track repository to handle creation and deletion of tracks related to the current episode.
|
/// A track repository to handle creation and deletion of tracks related to the current episode.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -20,6 +20,7 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The database handle
|
/// The database handle
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly DatabaseContext _database;
|
private readonly DatabaseContext _database;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A lazy loaded library repository to validate queries (check if a library does exist)
|
/// A lazy loaded library repository to validate queries (check if a library does exist)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -20,6 +20,7 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The database handle
|
/// The database handle
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly DatabaseContext _database;
|
private readonly DatabaseContext _database;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A provider repository to handle externalID creation and deletion
|
/// A provider repository to handle externalID creation and deletion
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -21,10 +21,12 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The database handle
|
/// The database handle
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly DatabaseContext _database;
|
private readonly DatabaseContext _database;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A provider repository to handle externalID creation and deletion
|
/// A provider repository to handle externalID creation and deletion
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IProviderRepository _providers;
|
private readonly IProviderRepository _providers;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A lazy loaded show repository to validate requests from shows.
|
/// A lazy loaded show repository to validate requests from shows.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -20,6 +20,7 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The database handle
|
/// The database handle
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly DatabaseContext _database;
|
private readonly DatabaseContext _database;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A provider repository to handle externalID creation and deletion
|
/// A provider repository to handle externalID creation and deletion
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -20,18 +20,22 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The database handle
|
/// The database handle
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly DatabaseContext _database;
|
private readonly DatabaseContext _database;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A studio repository to handle creation/validation of related studios.
|
/// A studio repository to handle creation/validation of related studios.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IStudioRepository _studios;
|
private readonly IStudioRepository _studios;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A people repository to handle creation/validation of related people.
|
/// A people repository to handle creation/validation of related people.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IPeopleRepository _people;
|
private readonly IPeopleRepository _people;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A genres repository to handle creation/validation of related genres.
|
/// A genres repository to handle creation/validation of related genres.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IGenreRepository _genres;
|
private readonly IGenreRepository _genres;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A provider repository to handle externalID creation and deletion
|
/// A provider repository to handle externalID creation and deletion
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -74,6 +74,7 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The configuration instance used to get schedule information
|
/// The configuration instance used to get schedule information
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IOptionsMonitor<TaskOptions> _options;
|
private readonly IOptionsMonitor<TaskOptions> _options;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The logger instance.
|
/// The logger instance.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -83,14 +84,17 @@ namespace Kyoo.Core.Controllers
|
|||||||
/// The list of tasks and their next scheduled run.
|
/// The list of tasks and their next scheduled run.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly List<ManagedTask> _tasks;
|
private readonly List<ManagedTask> _tasks;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The queue of tasks that should be run as soon as possible.
|
/// The queue of tasks that should be run as soon as possible.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly Queue<QueuedTask> _queuedTasks = new();
|
private readonly Queue<QueuedTask> _queuedTasks = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The currently running task.
|
/// The currently running task.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private (TaskMetadataAttribute, ITask)? _runningTask;
|
private (TaskMetadataAttribute, ITask)? _runningTask;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The cancellation token used to cancel the running task when the runner should shutdown.
|
/// The cancellation token used to cancel the running task when the runner should shutdown.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -22,14 +22,17 @@ namespace Kyoo.Core.Tasks
|
|||||||
/// The library manager used to get libraries and providers to use.
|
/// The library manager used to get libraries and providers to use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly ILibraryManager _libraryManager;
|
private readonly ILibraryManager _libraryManager;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The file manager used walk inside directories and check they existences.
|
/// The file manager used walk inside directories and check they existences.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IFileSystem _fileSystem;
|
private readonly IFileSystem _fileSystem;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A task manager used to create sub tasks for each episode to add to the database.
|
/// A task manager used to create sub tasks for each episode to add to the database.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly ITaskManager _taskManager;
|
private readonly ITaskManager _taskManager;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The logger used to inform the current status to the console.
|
/// The logger used to inform the current status to the console.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -18,10 +18,12 @@ namespace Kyoo.Core.Tasks
|
|||||||
/// The library manager used to get libraries or remove deleted episodes.
|
/// The library manager used to get libraries or remove deleted episodes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly ILibraryManager _libraryManager;
|
private readonly ILibraryManager _libraryManager;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The file manager used walk inside directories and check they existences.
|
/// The file manager used walk inside directories and check they existences.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IFileSystem _fileSystem;
|
private readonly IFileSystem _fileSystem;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The logger used to inform the user that episodes has been removed.
|
/// The logger used to inform the user that episodes has been removed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -19,10 +19,12 @@ namespace Kyoo.Core.Tasks
|
|||||||
/// The provider repository used to create in-db providers from metadata providers.
|
/// The provider repository used to create in-db providers from metadata providers.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IProviderRepository _providers;
|
private readonly IProviderRepository _providers;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The thumbnail manager used to download providers logo.
|
/// The thumbnail manager used to download providers logo.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IThumbnailsManager _thumbnails;
|
private readonly IThumbnailsManager _thumbnails;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The list of metadata providers to register.
|
/// The list of metadata providers to register.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -18,6 +18,7 @@ namespace Kyoo.Core.Tasks
|
|||||||
/// The plugin manager used to retrieve plugins to initialize them.
|
/// The plugin manager used to retrieve plugins to initialize them.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IPluginManager _pluginManager;
|
private readonly IPluginManager _pluginManager;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The service provider given to each <see cref="IPlugin.Initialize"/> method.
|
/// The service provider given to each <see cref="IPlugin.Initialize"/> method.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -19,18 +19,22 @@ namespace Kyoo.Core.Tasks
|
|||||||
/// An identifier to extract metadata from paths.
|
/// An identifier to extract metadata from paths.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IIdentifier _identifier;
|
private readonly IIdentifier _identifier;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The library manager used to register the episode.
|
/// The library manager used to register the episode.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly ILibraryManager _libraryManager;
|
private readonly ILibraryManager _libraryManager;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A metadata provider to retrieve the metadata of the new episode (and related items if they do not exist).
|
/// A metadata provider to retrieve the metadata of the new episode (and related items if they do not exist).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly AProviderComposite _metadataProvider;
|
private readonly AProviderComposite _metadataProvider;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The thumbnail manager used to download images.
|
/// The thumbnail manager used to download images.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IThumbnailsManager _thumbnailsManager;
|
private readonly IThumbnailsManager _thumbnailsManager;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The transcoder used to extract subtitles and metadata.
|
/// The transcoder used to extract subtitles and metadata.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -18,6 +18,7 @@ namespace Kyoo.Core.Tasks
|
|||||||
/// An identifier to extract metadata from paths.
|
/// An identifier to extract metadata from paths.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly IIdentifier _identifier;
|
private readonly IIdentifier _identifier;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The library manager used to register the episode.
|
/// The library manager used to register the episode.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user