mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 17:11:10 +00:00
Adds dynamic path templates for media libraries, so that the scanner can derive the meaning of each path part
This commit is contained in:
1 parent
62b0e9297a
commit
ca4f308b0a
86 files changed
+7406
-151
No files matched your search
@@ -0,0 +1,82 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the kinds of parts that make up a media library path template.
|
||||
/// </summary>
|
||||
public enum LibraryPathPartKind
|
||||
{
|
||||
/// <summary>
|
||||
/// A free text part, used for arbitrary on-disk text and for the literal glue between value parts (e.g. " - ").
|
||||
/// </summary>
|
||||
Literal,
|
||||
|
||||
/// <summary>
|
||||
/// The path separator between two directories of the library structure.
|
||||
/// </summary>
|
||||
Separator,
|
||||
|
||||
/// <summary>
|
||||
/// The name of the artist the release belongs to.
|
||||
/// </summary>
|
||||
Artist,
|
||||
|
||||
/// <summary>
|
||||
/// The type of the release (e.g. Album, Single, Compilation).
|
||||
/// </summary>
|
||||
ReleaseType,
|
||||
|
||||
/// <summary>
|
||||
/// The year the release was published.
|
||||
/// </summary>
|
||||
ReleaseYear,
|
||||
|
||||
/// <summary>
|
||||
/// The title of the release.
|
||||
/// </summary>
|
||||
ReleaseName,
|
||||
|
||||
/// <summary>
|
||||
/// The number of the track on its disc.
|
||||
/// </summary>
|
||||
TrackNumber,
|
||||
|
||||
/// <summary>
|
||||
/// The title of the track.
|
||||
/// </summary>
|
||||
TrackName,
|
||||
|
||||
/// <summary>
|
||||
/// The file name extension of the track, without the leading dot.
|
||||
/// </summary>
|
||||
Extension,
|
||||
|
||||
/// <summary>
|
||||
/// The number of the disc the track belongs to.
|
||||
/// </summary>
|
||||
DiscNumber,
|
||||
|
||||
/// <summary>
|
||||
/// The name of the author of a book.
|
||||
/// </summary>
|
||||
Author,
|
||||
|
||||
/// <summary>
|
||||
/// The title of a book.
|
||||
/// </summary>
|
||||
Title,
|
||||
|
||||
/// <summary>
|
||||
/// The name of the series a book belongs to.
|
||||
/// </summary>
|
||||
Series,
|
||||
|
||||
/// <summary>
|
||||
/// The number of the book within its series.
|
||||
/// </summary>
|
||||
SeriesNumber,
|
||||
|
||||
/// <summary>
|
||||
/// The identifier Calibre assigns to a book on disk.
|
||||
/// </summary>
|
||||
BookId
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Enumeration for the value types captured by the typed parts of a media library path template.
|
||||
/// </summary>
|
||||
public enum LibraryPathValueType
|
||||
{
|
||||
/// <summary>
|
||||
/// The part carries no captured value, like a literal or a path separator.
|
||||
/// </summary>
|
||||
None,
|
||||
|
||||
/// <summary>
|
||||
/// The part captures a free text value.
|
||||
/// </summary>
|
||||
Text,
|
||||
|
||||
/// <summary>
|
||||
/// The part captures an integer value.
|
||||
/// </summary>
|
||||
Integer,
|
||||
|
||||
/// <summary>
|
||||
/// The part captures a four digit year.
|
||||
/// </summary>
|
||||
Year,
|
||||
|
||||
/// <summary>
|
||||
/// The part captures a value that is later resolved against an enumeration.
|
||||
/// </summary>
|
||||
Enum
|
||||
}
|
||||
Reference in new issue
Block a user