mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Integrates the plugin system into the host and the media library scan pipeline
This commit is contained in:
1 parent
f71e72a948
commit
6f501a51f3
45 files changed
+1268
-370
No files matched your search
@@ -0,0 +1,6 @@
|
||||
namespace Lumina.Contracts.DTO.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Base type for all metadata returned by a metadata provider.
|
||||
/// </summary>
|
||||
public abstract record MetadataDto;
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Lumina.Contracts.DTO.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Base type for all metadata lookups used to search for media items.
|
||||
/// </summary>
|
||||
public abstract record MetadataLookupDto;
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using Lumina.Contracts.DTO.MediaContributors;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
|
||||
using System.Collections.Generic;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the metadata of a book returned by a metadata provider.
|
||||
/// </summary>
|
||||
public sealed record BookMetadataDto(
|
||||
string? Title,
|
||||
string? OriginalTitle,
|
||||
string? Description,
|
||||
ReleaseInfoDto? ReleaseInfo,
|
||||
List<GenreDto>? Genres,
|
||||
List<TagDto>? Tags,
|
||||
LanguageInfoDto? Language,
|
||||
LanguageInfoDto? OriginalLanguage,
|
||||
string? Publisher,
|
||||
int? PageCount,
|
||||
BookFormat? Format,
|
||||
string? Edition,
|
||||
int? VolumeNumber,
|
||||
BookSeriesDto? Series,
|
||||
string? ASIN,
|
||||
string? GoodreadsId,
|
||||
string? LCCN,
|
||||
string? OCLCNumber,
|
||||
string? OpenLibraryId,
|
||||
string? LibraryThingId,
|
||||
string? GoogleBooksId,
|
||||
string? BarnesAndNobleId,
|
||||
string? AppleBooksId,
|
||||
List<IsbnDto>? Isbns,
|
||||
List<MediaContributorDto>? Contributors,
|
||||
List<BookRatingDto>? Ratings,
|
||||
string? CoverImageUrl
|
||||
) : MetadataDto;
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for a book metadata lookup.
|
||||
/// </summary>
|
||||
public sealed record BookMetadataLookupDto(
|
||||
Guid LibraryId,
|
||||
string Path,
|
||||
string? Isbn = null,
|
||||
string? OpenLibraryId = null,
|
||||
string? Title = null,
|
||||
string? Author = null,
|
||||
string? LanguageCode = null
|
||||
//string? Title,
|
||||
//string? OriginalTitle,
|
||||
//int? ReleaseYear,
|
||||
//string? LanguageCode,
|
||||
//IReadOnlyList<string>? Isbns,
|
||||
//string? GoodreadsId,
|
||||
//string? OpenLibraryId,
|
||||
//string? GoogleBooksId
|
||||
) : MetadataLookupDto;
|
||||
Reference in new issue
Block a user