mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 17:11:10 +00:00
Adds music page play affordances and shuffle playback
Adds play and shuffle actions to music library, artist, and album cards. Adds the library play context and the uniform shuffle endpoint. Expands the player bar with queue covers, now playing details, and release type. Updates the bundled themes, API documentation, and the user manual.
This commit is contained in:
1 parent
93821a2776
commit
067e9a21d0
132 files changed
+2935
-715
No files matched your search
+46
@@ -0,0 +1,46 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.DTO.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
|
||||
/// <summary>
|
||||
/// Read model of a track returned by a randomized shuffle query, carrying everything the client needs to queue and play it.
|
||||
/// </summary>
|
||||
public sealed record ShuffleTrackRowDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Id of the track.
|
||||
/// </summary>
|
||||
public required Guid TrackId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the title of the track.
|
||||
/// </summary>
|
||||
public required string Title { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the duration of the track in seconds.
|
||||
/// </summary>
|
||||
public int DurationInSeconds { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Id of the album the track belongs to.
|
||||
/// </summary>
|
||||
public required Guid AlbumId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the title of the album the track belongs to.
|
||||
/// </summary>
|
||||
public required string AlbumTitle { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Id of the artist the album belongs to.
|
||||
/// </summary>
|
||||
public required Guid ArtistId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the path of the cover of the album, if available.
|
||||
/// </summary>
|
||||
public string? CoverPath { get; init; }
|
||||
}
|
||||
+13
@@ -49,6 +49,19 @@ public interface ITrackRepository : IRepository<TrackEntity>,
|
||||
/// <returns>An <see cref="Result{TValue}"/> containing either a paginated result of <see cref="TrackLiteRow"/>, or an error.</returns>
|
||||
Task<Result<PaginatedResultDto<TrackLiteRow>>> GetTracksLiteByAlbumIdAsync(Guid albumId, PaginationDataDto? paginationData, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a uniformly random selection of tracks of the library identified by <paramref name="libraryId"/>, optionally scoped to
|
||||
/// an artist or an album, excluding the tracks in <paramref name="excludedTrackIds"/>.
|
||||
/// </summary>
|
||||
/// <param name="libraryId">The Id of the library whose tracks are sampled.</param>
|
||||
/// <param name="artistId">The Id of the artist whose tracks are sampled, or <see langword="null"/> for every artist of the library.</param>
|
||||
/// <param name="albumId">The Id of the album whose tracks are sampled, or <see langword="null"/> for every album of the scope.</param>
|
||||
/// <param name="excludedTrackIds">The tracks that must not be returned.</param>
|
||||
/// <param name="count">The maximum number of tracks to return.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>An <see cref="Result{TValue}"/> containing either a collection of <see cref="ShuffleTrackRowDto"/>, or an error.</returns>
|
||||
Task<Result<IReadOnlyList<ShuffleTrackRowDto>>> GetShuffleTracksLiteAsync(Guid libraryId, Guid? artistId, Guid? albumId, IReadOnlyCollection<Guid> excludedTrackIds, int count, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the track of the library identified by <paramref name="libraryId"/> that is stored at the provided <paramref name="path"/>.
|
||||
/// </summary>
|
||||
|
||||
+2
-1
@@ -170,7 +170,7 @@ public static class AlbumEntityMapping
|
||||
repositoryEntity.ReleaseCountry,
|
||||
repositoryEntity.ReleaseVersion
|
||||
);
|
||||
// language and original language make sense only if their subproperties have values
|
||||
// Language and original language make sense only if their subproperties have values.
|
||||
LanguageInfoDto? languageInfo = !string.IsNullOrWhiteSpace(repositoryEntity.LanguageCode) ||
|
||||
!string.IsNullOrWhiteSpace(repositoryEntity.LanguageName) ||
|
||||
!string.IsNullOrWhiteSpace(repositoryEntity.LanguageNativeName)
|
||||
@@ -207,6 +207,7 @@ public static class AlbumEntityMapping
|
||||
return new AlbumResponse(
|
||||
repositoryEntity.Id,
|
||||
repositoryEntity.ArtistId,
|
||||
repositoryEntity.Artist?.Name ?? string.Empty,
|
||||
repositoryEntity.LibraryId,
|
||||
metadata,
|
||||
repositoryEntity.MediaFormat,
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Common.DTO.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.Mapping.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods for converting <see cref="ShuffleTrackRowDto"/>.
|
||||
/// </summary>
|
||||
public static class ShuffleTrackRowDtoMapping
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts <paramref name="readModel"/> to <see cref="ShuffleTrackResponse"/>.
|
||||
/// </summary>
|
||||
/// <param name="readModel">The read model to be converted.</param>
|
||||
/// <returns>The converted response.</returns>
|
||||
public static ShuffleTrackResponse ToResponse(this ShuffleTrackRowDto readModel)
|
||||
{
|
||||
return new ShuffleTrackResponse(
|
||||
readModel.TrackId,
|
||||
readModel.Title,
|
||||
readModel.DurationInSeconds,
|
||||
readModel.AlbumId,
|
||||
readModel.AlbumTitle,
|
||||
readModel.ArtistId,
|
||||
readModel.CoverPath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts <paramref name="readModels"/> to a collection of <see cref="ShuffleTrackResponse"/>.
|
||||
/// </summary>
|
||||
/// <param name="readModels">The read models to be converted.</param>
|
||||
/// <returns>The converted responses.</returns>
|
||||
public static IReadOnlyList<ShuffleTrackResponse> ToResponses(this IEnumerable<ShuffleTrackRowDto> readModels)
|
||||
{
|
||||
return [.. readModels.Select(readModel => readModel.ToResponse())];
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Core.MediaLibrary.AudioLibrary.MusicLibrary.Tracks.Queries.ShuffleTracks;
|
||||
using Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.Mapping.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods for converting <see cref="ShuffleTracksRequest"/>.
|
||||
/// </summary>
|
||||
public static class ShuffleTracksRequestMapping
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts <paramref name="request"/> to <see cref="ShuffleTracksQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="request">The request to be converted.</param>
|
||||
/// <param name="libraryId">The Id of the library the tracks are sampled from, taken from the route.</param>
|
||||
/// <returns>The converted query.</returns>
|
||||
public static ShuffleTracksQuery ToQuery(this ShuffleTracksRequest request, string? libraryId)
|
||||
{
|
||||
return new ShuffleTracksQuery(
|
||||
libraryId,
|
||||
request.Count,
|
||||
request.ArtistId,
|
||||
request.AlbumId,
|
||||
request.ExcludedTrackIds);
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Common.CQRS;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Core.MediaLibrary.AudioLibrary.MusicLibrary.Tracks.Queries.ShuffleTracks;
|
||||
|
||||
/// <summary>
|
||||
/// Query for getting a random selection of tracks from a media library, an artist or an album.
|
||||
/// </summary>
|
||||
/// <param name="LibraryId">The unique identifier of the media library the tracks are sampled from, taken from the route.</param>
|
||||
/// <param name="Count">The maximum number of tracks to return.</param>
|
||||
/// <param name="ArtistId">The unique identifier of the artist whose tracks are sampled, if applicable.</param>
|
||||
/// <param name="AlbumId">The unique identifier of the album whose tracks are sampled, if applicable.</param>
|
||||
/// <param name="ExcludedTrackIds">The tracks that must not be returned, if any.</param>
|
||||
[DebuggerDisplay("LibraryId: {LibraryId} Count: {Count}")]
|
||||
public record ShuffleTracksQuery(
|
||||
string? LibraryId,
|
||||
int Count,
|
||||
Guid? ArtistId,
|
||||
Guid? AlbumId,
|
||||
IReadOnlyList<Guid>? ExcludedTrackIds
|
||||
) : IQuery;
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Common.CQRS;
|
||||
using Lumina.Application.Common.DataAccess.UoW;
|
||||
using Lumina.Application.Common.DTO.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Application.Common.Infrastructure.Authentication;
|
||||
using Lumina.Application.Common.Infrastructure.Authorization;
|
||||
using Lumina.Application.Common.Infrastructure.Authorization.Policies.LibraryOwnership;
|
||||
using Lumina.Application.Common.Infrastructure.Validation;
|
||||
using Lumina.Application.Common.Mapping.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Domain.Common.Errors;
|
||||
using Lumina.Domain.Common.Primitives;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ApplicationErrors = Lumina.Application.Common.Errors.Errors;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Core.MediaLibrary.AudioLibrary.MusicLibrary.Tracks.Queries.ShuffleTracks;
|
||||
|
||||
/// <summary>
|
||||
/// Handler for the query to draw a random selection of tracks from a media library, an artist or an album.
|
||||
/// </summary>
|
||||
public class ShuffleTracksQueryHandler : IQueryHandler<ShuffleTracksQuery, Result<IReadOnlyList<ShuffleTrackResponse>>>
|
||||
{
|
||||
private readonly IUnitOfWork _unitOfWork;
|
||||
private readonly IAuthorizationService _authorizationService;
|
||||
private readonly ICurrentUserService _currentUserService;
|
||||
private readonly IValidator<ShuffleTracksQuery> _validator;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShuffleTracksQueryHandler"/> class.
|
||||
/// </summary>
|
||||
/// <param name="unitOfWork">Injected unit of work for interacting with the data access layer repositories.</param>
|
||||
/// <param name="authorizationService">Injected service for authorization related functionality.</param>
|
||||
/// <param name="currentUserService">Injected service to retrieve the current user information.</param>
|
||||
/// <param name="validator">Injected validator for application validation rules.</param>
|
||||
public ShuffleTracksQueryHandler(IUnitOfWork unitOfWork, IAuthorizationService authorizationService, ICurrentUserService currentUserService, IValidator<ShuffleTracksQuery> validator)
|
||||
{
|
||||
_unitOfWork = unitOfWork;
|
||||
_authorizationService = authorizationService;
|
||||
_currentUserService = currentUserService;
|
||||
_validator = validator;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the query to draw a random selection of tracks from a media library, an artist or an album.
|
||||
/// </summary>
|
||||
/// <param name="query">The query to be handled.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>
|
||||
/// An <see cref="Result{TValue}"/> containing either a collection of <see cref="ShuffleTrackResponse"/>, or an error message.
|
||||
/// </returns>
|
||||
public async Task<Result<IReadOnlyList<ShuffleTrackResponse>>> HandleAsync(ShuffleTracksQuery query, CancellationToken cancellationToken)
|
||||
{
|
||||
List<Error> validationResult = _validator.Validate(query);
|
||||
if (validationResult.Count > 0)
|
||||
return validationResult;
|
||||
|
||||
// An authenticated request must always carry a user identity.
|
||||
Guid? currentUserId = _currentUserService.UserId;
|
||||
if (currentUserId is null)
|
||||
return ApplicationErrors.Authorization.NotAuthorized;
|
||||
Guid userId = currentUserId.Value;
|
||||
|
||||
// The validator guarantees that the route identifier is a non-empty Guid before this point.
|
||||
Guid libraryId = Guid.Parse(query.LibraryId!);
|
||||
|
||||
// Admins can shuffle all libraries; for everyone else, only the libraries they own.
|
||||
bool canAccessLibrary = await _authorizationService.EvaluatePolicyAsync<ILibraryOwnershipPolicy>(
|
||||
userId, new LibraryOwnershipPolicyContext(libraryId), cancellationToken).ConfigureAwait(false);
|
||||
if (!canAccessLibrary)
|
||||
return ApplicationErrors.Authorization.NotAuthorized;
|
||||
|
||||
IReadOnlyCollection<Guid> excludedTrackIds = query.ExcludedTrackIds is null
|
||||
? []
|
||||
: [.. query.ExcludedTrackIds.Where(trackId => trackId != Guid.Empty).Distinct()];
|
||||
|
||||
Result<IReadOnlyList<ShuffleTrackRowDto>> shuffleTracksResult = await _unitOfWork.TrackRepository.GetShuffleTracksLiteAsync(
|
||||
libraryId, query.ArtistId, query.AlbumId, excludedTrackIds, query.Count, cancellationToken).ConfigureAwait(false);
|
||||
return shuffleTracksResult.Match(value => Result.From(value.ToResponses()), errors => errors);
|
||||
}
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Common.Infrastructure.Validation;
|
||||
using Lumina.Domain.Common.Errors;
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Core.MediaLibrary.AudioLibrary.MusicLibrary.Tracks.Queries.ShuffleTracks;
|
||||
|
||||
/// <summary>
|
||||
/// Validates the needed validation rules for <see cref="ShuffleTracksQuery"/>.
|
||||
/// </summary>
|
||||
public class ShuffleTracksQueryValidator : AbstractValidator<ShuffleTracksQuery>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShuffleTracksQueryValidator"/> class.
|
||||
/// </summary>
|
||||
public ShuffleTracksQueryValidator()
|
||||
{
|
||||
// Validates the identifier of the media library whose tracks are sampled, taken from the route.
|
||||
RuleFor(query => query.LibraryId)
|
||||
.Must(libraryId => !string.IsNullOrEmpty(libraryId))
|
||||
.WithError(Errors.Library.LibraryIdCannotBeEmpty);
|
||||
|
||||
RuleFor(query => query.LibraryId)
|
||||
.Must(libraryId => Guid.TryParse(libraryId, out Guid parsedLibraryId) && parsedLibraryId != Guid.Empty)
|
||||
.When(query => !string.IsNullOrEmpty(query.LibraryId))
|
||||
.WithError(Errors.Library.LibraryIdCannotBeEmpty);
|
||||
|
||||
RuleFor(query => query.Count)
|
||||
.Must(count => count > 0)
|
||||
.WithError(Errors.Music.ShuffleTrackCountMustBeGreaterThanZero);
|
||||
|
||||
RuleFor(query => query.Count)
|
||||
.Must(count => count <= 500)
|
||||
.WithError(Errors.Music.ShuffleTrackCountMustBeAtMost500);
|
||||
|
||||
// The optional scoping identifiers must be real identifiers when they are present.
|
||||
RuleFor(query => query.ArtistId)
|
||||
.Must(artistId => !artistId.HasValue || artistId.Value != Guid.Empty)
|
||||
.WithError(Errors.Music.ArtistIdCannotBeEmpty);
|
||||
|
||||
RuleFor(query => query.AlbumId)
|
||||
.Must(albumId => !albumId.HasValue || albumId.Value != Guid.Empty)
|
||||
.WithError(Errors.Music.AlbumIdCannotBeEmpty);
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to draw a random selection of tracks from a media library, an artist or an album.
|
||||
/// </summary>
|
||||
/// <param name="Count">The maximum number of tracks to return. Required.</param>
|
||||
/// <param name="ArtistId">The unique identifier of the artist whose tracks are sampled. Optional.</param>
|
||||
/// <param name="AlbumId">The unique identifier of the album whose tracks are sampled. Optional.</param>
|
||||
/// <param name="ExcludedTrackIds">The tracks that must not be returned, usually the ones already in the queue. Optional.</param>
|
||||
[DebuggerDisplay("Count: {Count}")]
|
||||
public record ShuffleTracksRequest(
|
||||
int Count,
|
||||
Guid? ArtistId,
|
||||
Guid? AlbumId,
|
||||
List<Guid>? ExcludedTrackIds
|
||||
);
|
||||
+2
@@ -17,6 +17,7 @@ namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albu
|
||||
/// </summary>
|
||||
/// <param name="Id">The Id of the album.</param>
|
||||
/// <param name="ArtistId">The Id of the artist the album belongs to.</param>
|
||||
/// <param name="ArtistName">The name of the artist the album belongs to.</param>
|
||||
/// <param name="LibraryId">The Id of the media library this album belongs to.</param>
|
||||
/// <param name="Metadata">The album metadata of the album.</param>
|
||||
/// <param name="MediaFormat">The physical or digital medium of the album, if applicable.</param>
|
||||
@@ -39,6 +40,7 @@ namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albu
|
||||
public record AlbumResponse(
|
||||
Guid Id,
|
||||
Guid ArtistId,
|
||||
string ArtistName,
|
||||
Guid LibraryId,
|
||||
MusicAlbumMetadataDto Metadata,
|
||||
MusicMediaFormat? MediaFormat,
|
||||
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response for a track returned by a randomized shuffle query, carrying everything the client needs to queue and play it.
|
||||
/// </summary>
|
||||
/// <param name="TrackId">The Id of the track.</param>
|
||||
/// <param name="Title">The title of the track.</param>
|
||||
/// <param name="DurationInSeconds">The duration of the track in seconds.</param>
|
||||
/// <param name="AlbumId">The Id of the album the track belongs to.</param>
|
||||
/// <param name="AlbumTitle">The title of the album the track belongs to.</param>
|
||||
/// <param name="ArtistId">The Id of the artist the album belongs to.</param>
|
||||
/// <param name="CoverPath">The path of the cover of the album, if available.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record ShuffleTrackResponse(
|
||||
Guid TrackId,
|
||||
string Title,
|
||||
int DurationInSeconds,
|
||||
Guid AlbumId,
|
||||
string AlbumTitle,
|
||||
Guid ArtistId,
|
||||
string? CoverPath
|
||||
);
|
||||
@@ -8,6 +8,7 @@ using Lumina.DataAccess.Common.Persistence;
|
||||
using Lumina.DataAccess.Core.UoW;
|
||||
using Lumina.Domain.Common.Errors;
|
||||
using Lumina.Domain.Common.Primitives;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.AudioLibrary;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
@@ -306,6 +307,53 @@ internal sealed class TrackRepository : ITrackRepository
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a uniformly random selection of tracks of the library identified by <paramref name="libraryId"/>, optionally scoped to
|
||||
/// an artist or an album, excluding the tracks in <paramref name="excludedTrackIds"/>.
|
||||
/// </summary>
|
||||
/// <param name="libraryId">The Id of the library whose tracks are sampled.</param>
|
||||
/// <param name="artistId">The Id of the artist whose tracks are sampled, or <see langword="null"/> for every artist of the library.</param>
|
||||
/// <param name="albumId">The Id of the album whose tracks are sampled, or <see langword="null"/> for every album of the scope.</param>
|
||||
/// <param name="excludedTrackIds">The tracks that must not be returned.</param>
|
||||
/// <param name="count">The maximum number of tracks to return.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>An <see cref="Result{TValue}"/> containing either a collection of <see cref="ShuffleTrackRowDto"/>, or an error.</returns>
|
||||
public async Task<Result<IReadOnlyList<ShuffleTrackRowDto>>> GetShuffleTracksLiteAsync(Guid libraryId, Guid? artistId, Guid? albumId, IReadOnlyCollection<Guid> excludedTrackIds, int count, CancellationToken cancellationToken)
|
||||
{
|
||||
IQueryable<TrackEntity> query = _luminaDbContext.Tracks
|
||||
.AsNoTracking()
|
||||
.Where(track => track.LibraryId == libraryId);
|
||||
|
||||
if (artistId is not null)
|
||||
query = query.Where(track => track.Album!.ArtistId == artistId.Value);
|
||||
if (albumId is not null)
|
||||
query = query.Where(track => track.AlbumId == albumId.Value);
|
||||
// The exclusions are materialized as an array, so EF translates them the same way as the other Id collections it already parameterizes.
|
||||
Guid[] excludedIds = excludedTrackIds is Guid[] ids ? ids : [.. excludedTrackIds];
|
||||
if (excludedIds.Length > 0)
|
||||
query = query.Where(track => !excludedIds.Contains(track.Id));
|
||||
|
||||
// SQLite randomizes the rows before the limit, so the result is a uniform sample of every matching track.
|
||||
return await query
|
||||
.OrderBy(_ => EF.Functions.Random())
|
||||
.Take(count)
|
||||
.Select(track => new ShuffleTrackRowDto
|
||||
{
|
||||
TrackId = track.Id,
|
||||
Title = track.Title,
|
||||
DurationInSeconds = track.DurationInSeconds,
|
||||
AlbumId = track.AlbumId,
|
||||
AlbumTitle = track.Album!.Title,
|
||||
ArtistId = track.Album!.ArtistId,
|
||||
// The cover is the cover artwork stored for the album, exactly like the album cards expose it.
|
||||
CoverPath = _luminaDbContext.MusicArtwork
|
||||
.Where(artwork => artwork.OwnerType == MusicArtworkOwnerType.Album && artwork.OwnerId == track.AlbumId && artwork.ArtworkType == ArtworkType.Cover)
|
||||
.Select(artwork => artwork.FileName)
|
||||
.FirstOrDefault()
|
||||
})
|
||||
.ToListAsync(cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the track of the library identified by <paramref name="libraryId"/> that is stored at the provided <paramref name="path"/>.
|
||||
/// </summary>
|
||||
|
||||
@@ -67,5 +67,7 @@ public static partial class Errors
|
||||
public static Error IsniValueMustBeMaximum20CharactersLong => Error.Validation(description: nameof(IsniValueMustBeMaximum20CharactersLong));
|
||||
public static Error WorkTitleCannotBeEmpty => Error.Validation(description: nameof(WorkTitleCannotBeEmpty));
|
||||
public static Error CoverCannotBeNull => Error.Validation(description: nameof(CoverCannotBeNull));
|
||||
public static Error ShuffleTrackCountMustBeGreaterThanZero => Error.Validation(description: nameof(ShuffleTrackCountMustBeGreaterThanZero));
|
||||
public static Error ShuffleTrackCountMustBeAtMost500 => Error.Validation(description: nameof(ShuffleTrackCountMustBeAtMost500));
|
||||
}
|
||||
}
|
||||
+1
@@ -12,6 +12,7 @@ public static partial class ApiRoutes
|
||||
{
|
||||
public const string ADD_TRACK = "/libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks";
|
||||
public const string GET_TRACK_BY_ID = "/libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string SHUFFLE_TRACKS = "/libraries/{libraryId}/tracks/shuffle";
|
||||
public const string UPDATE_TRACK = "/libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string DELETE_TRACK = "/libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string STREAM_TRACK = "/libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}/stream";
|
||||
|
||||
+2
@@ -340,6 +340,7 @@ public class AddAlbumEndpointSummary : Summary<AddAlbumEndpoint, AddAlbumRequest
|
||||
|
||||
ResponseParam<AlbumResponse>(r => r.Id, "The Id of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.ArtistId, "The Id of the artist the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.ArtistName, "The name of the artist the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.LibraryId, "The Id of the media library the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Title, "The title of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.OriginalTitle, "The original title of the album, if applicable.");
|
||||
@@ -380,6 +381,7 @@ public class AddAlbumEndpointSummary : Summary<AddAlbumEndpoint, AddAlbumRequest
|
||||
example: new AlbumResponse(
|
||||
Id: albumId,
|
||||
ArtistId: artistId,
|
||||
ArtistName: "Queen",
|
||||
LibraryId: libraryId,
|
||||
Metadata: new(
|
||||
Title: "A Night at the Opera",
|
||||
|
||||
+2
@@ -32,6 +32,7 @@ public class GetAlbumEndpointSummary : Summary<GetAlbumEndpoint, EmptyRequest>
|
||||
|
||||
ResponseParam<AlbumResponse>(r => r.Id, "The Id of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.ArtistId, "The Id of the artist the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.ArtistName, "The name of the artist the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.LibraryId, "The Id of the media library the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Title, "The title of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.OriginalTitle, "The original title of the album, if applicable.");
|
||||
@@ -72,6 +73,7 @@ public class GetAlbumEndpointSummary : Summary<GetAlbumEndpoint, EmptyRequest>
|
||||
example: new AlbumResponse(
|
||||
Id: Guid.NewGuid(),
|
||||
ArtistId: Guid.NewGuid(),
|
||||
ArtistName: "Queen",
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Metadata: new MusicAlbumMetadataDto(
|
||||
Title: "A Night at the Opera",
|
||||
|
||||
+2
@@ -144,6 +144,7 @@ public class UpdateAlbumEndpointSummary : Summary<UpdateAlbumEndpoint, UpdateAlb
|
||||
|
||||
ResponseParam<AlbumResponse>(r => r.Id, "The Id of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.ArtistId, "The Id of the artist the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.ArtistName, "The name of the artist the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.LibraryId, "The Id of the media library the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Title, "The title of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.OriginalTitle, "The original title of the album, if applicable.");
|
||||
@@ -184,6 +185,7 @@ public class UpdateAlbumEndpointSummary : Summary<UpdateAlbumEndpoint, UpdateAlb
|
||||
example: new AlbumResponse(
|
||||
Id: Guid.NewGuid(),
|
||||
ArtistId: Guid.NewGuid(),
|
||||
ArtistName: "Queen",
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Metadata: new MusicAlbumMetadataDto(
|
||||
Title: "A Night at the Opera",
|
||||
|
||||
+1
@@ -549,6 +549,7 @@ public class AddArtistEndpointSummary : Summary<AddArtistEndpoint, AddArtistRequ
|
||||
new(
|
||||
Id: albumId,
|
||||
ArtistId: artistId,
|
||||
ArtistName: "Queen",
|
||||
LibraryId: libraryId,
|
||||
Metadata: new(
|
||||
Title: "A Night at the Opera",
|
||||
|
||||
+1
@@ -79,6 +79,7 @@ public class GetArtistEndpointSummary : Summary<GetArtistEndpoint, EmptyRequest>
|
||||
new(
|
||||
Id: Guid.NewGuid(),
|
||||
ArtistId: Guid.NewGuid(),
|
||||
ArtistName: "Queen",
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Metadata: new(
|
||||
Title: "A Night at the Opera",
|
||||
|
||||
+3
@@ -32,6 +32,7 @@ public class GetArtistAlbumsEndpointSummary : Summary<GetArtistAlbumsEndpoint, E
|
||||
|
||||
ResponseParam<AlbumResponse>(r => r.Id, "The Id of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.ArtistId, "The Id of the artist the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.ArtistName, "The name of the artist the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.LibraryId, "The Id of the media library the album belongs to.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.Title, "The title of the album.");
|
||||
ResponseParam<AlbumResponse>(r => r.Metadata!.OriginalTitle, "The original title of the album, if applicable.");
|
||||
@@ -74,6 +75,7 @@ public class GetArtistAlbumsEndpointSummary : Summary<GetArtistAlbumsEndpoint, E
|
||||
new AlbumResponse(
|
||||
Id: Guid.NewGuid(),
|
||||
ArtistId: Guid.NewGuid(),
|
||||
ArtistName: "Queen",
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Metadata: new MusicAlbumMetadataDto(
|
||||
Title: "A Night at the Opera",
|
||||
@@ -249,6 +251,7 @@ public class GetArtistAlbumsEndpointSummary : Summary<GetArtistAlbumsEndpoint, E
|
||||
new AlbumResponse(
|
||||
Id: Guid.NewGuid(),
|
||||
ArtistId: Guid.NewGuid(),
|
||||
ArtistName: "Queen",
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Metadata: new MusicAlbumMetadataDto(
|
||||
Title: "The Works",
|
||||
|
||||
+2
@@ -91,6 +91,7 @@ public class GetArtistsEndpointSummary : Summary<GetArtistsEndpoint, GetArtistsR
|
||||
new(
|
||||
Id: Guid.NewGuid(),
|
||||
ArtistId: Guid.NewGuid(),
|
||||
ArtistName: "Queen",
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Metadata: new(
|
||||
Title: "A Night at the Opera",
|
||||
@@ -216,6 +217,7 @@ public class GetArtistsEndpointSummary : Summary<GetArtistsEndpoint, GetArtistsR
|
||||
new(
|
||||
Id: Guid.NewGuid(),
|
||||
ArtistId: Guid.NewGuid(),
|
||||
ArtistName: "Queen",
|
||||
LibraryId: Guid.NewGuid(),
|
||||
Metadata: new(
|
||||
Title: "Heroes",
|
||||
|
||||
+1
@@ -546,6 +546,7 @@ public class UpdateArtistEndpointSummary : Summary<UpdateArtistEndpoint, UpdateA
|
||||
new AlbumResponse(
|
||||
Id: albumId,
|
||||
ArtistId: artistId,
|
||||
ArtistName: "Queen",
|
||||
LibraryId: libraryId,
|
||||
Metadata: new MusicAlbumMetadataDto(
|
||||
Title: "A Night at the Opera",
|
||||
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Application.Common.CQRS;
|
||||
using Lumina.Application.Common.Mapping.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Application.Core.MediaLibrary.AudioLibrary.MusicLibrary.Tracks.Queries.ShuffleTracks;
|
||||
using Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Domain.Common.Primitives;
|
||||
using Lumina.Presentation.Api.Common.Routes.Library.AudioLibrary.MusicLibrary;
|
||||
using Lumina.Presentation.Api.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Api.Core.Endpoints.Library.AudioLibrary.MusicLibrary.Tracks.ShuffleTracks;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/libraries/{libraryId}/tracks/shuffle</c> route.
|
||||
/// </summary>
|
||||
public class ShuffleTracksEndpoint : BaseEndpoint<ShuffleTracksRequest, IResult>
|
||||
{
|
||||
private readonly IQueryHandler<ShuffleTracksQuery, Result<IReadOnlyList<ShuffleTrackResponse>>> _shuffleTracksQueryHandler;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShuffleTracksEndpoint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="shuffleTracksQueryHandler">Injected service for handling shuffle tracks queries.</param>
|
||||
public ShuffleTracksEndpoint(IQueryHandler<ShuffleTracksQuery, Result<IReadOnlyList<ShuffleTrackResponse>>> shuffleTracksQueryHandler)
|
||||
{
|
||||
_shuffleTracksQueryHandler = shuffleTracksQueryHandler;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configures the API endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
Verbs(Http.POST);
|
||||
Routes(ApiRoutes.Tracks.SHUFFLE_TRACKS);
|
||||
Version(1);
|
||||
DontCatchExceptions();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Draws a random selection of tracks of the library identified by the route.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the selection size, the optional scope and the tracks to exclude.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(ShuffleTracksRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
// Take the unique identifier from the route.
|
||||
string? libraryId = HttpContext.Request.RouteValues["libraryId"]?.ToString();
|
||||
Result<IReadOnlyList<ShuffleTrackResponse>> result = await _shuffleTracksQueryHandler.HandleAsync(request.ToQuery(libraryId), cancellationToken).ConfigureAwait(false);
|
||||
return result.Match(success => TypedResults.Ok(success), Problem);
|
||||
}
|
||||
}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Contracts.Requests.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Api.Core.Endpoints.Library.AudioLibrary.MusicLibrary.Tracks.ShuffleTracks;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="ShuffleTracksEndpoint"/> API endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class ShuffleTracksEndpointSummary : Summary<ShuffleTracksEndpoint, ShuffleTracksRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShuffleTracksEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public ShuffleTracksEndpointSummary()
|
||||
{
|
||||
Summary = "Draws a random selection of tracks from a media library, an artist or an album.";
|
||||
Description = "Returns uniformly random tracks from every track of the whole library, of one artist, or of one album, selected by the database itself. The client can pass the tracks it already queued to exclude them, so consecutive batches of a shuffle do not repeat a track. The request is returned to an Admin, who can shuffle all libraries, or to the owner of the library.";
|
||||
|
||||
ExampleRequest = new ShuffleTracksRequest(
|
||||
Count: 100,
|
||||
ArtistId: null,
|
||||
AlbumId: null,
|
||||
ExcludedTrackIds: [Guid.NewGuid(), Guid.NewGuid()]
|
||||
);
|
||||
|
||||
RequestParam(r => r.Count, "The maximum number of tracks to return, between 1 and 500.");
|
||||
RequestParam(r => r.ArtistId, "The artist whose tracks are sampled. Optional.");
|
||||
RequestParam(r => r.AlbumId, "The album whose tracks are sampled. Optional.");
|
||||
RequestParam(r => r.ExcludedTrackIds, "The tracks that must not be returned. Optional.");
|
||||
|
||||
ResponseParam<ShuffleTrackResponse>(r => r.TrackId, "The Id of the track.");
|
||||
ResponseParam<ShuffleTrackResponse>(r => r.Title, "The title of the track.");
|
||||
ResponseParam<ShuffleTrackResponse>(r => r.DurationInSeconds, "The duration of the track in seconds.");
|
||||
ResponseParam<ShuffleTrackResponse>(r => r.AlbumId, "The Id of the album the track belongs to.");
|
||||
ResponseParam<ShuffleTrackResponse>(r => r.AlbumTitle, "The title of the album the track belongs to.");
|
||||
ResponseParam<ShuffleTrackResponse>(r => r.ArtistId, "The Id of the artist the album belongs to.");
|
||||
ResponseParam<ShuffleTrackResponse>(r => r.CoverPath, "The path of the cover of the album, if available.");
|
||||
|
||||
Response(200, "The random selection of tracks is returned.",
|
||||
example: new List<ShuffleTrackResponse>
|
||||
{
|
||||
new(
|
||||
TrackId: Guid.NewGuid(),
|
||||
Title: "Bohemian Rhapsody",
|
||||
DurationInSeconds: 354,
|
||||
AlbumId: Guid.NewGuid(),
|
||||
AlbumTitle: "A Night at the Opera",
|
||||
ArtistId: Guid.NewGuid(),
|
||||
CoverPath: "/music/queen/a-night-at-the-opera/cover.jpg"
|
||||
)
|
||||
}
|
||||
);
|
||||
|
||||
Response(401, "Authentication required.", "application/problem+json",
|
||||
example: new
|
||||
{
|
||||
type = "https://tools.ietf.org/html/rfc7235#section-3.1",
|
||||
status = 401,
|
||||
title = "Unauthorized",
|
||||
detail = "Authentication failed",
|
||||
instance = $"/api/v1/libraries/{Guid.NewGuid()}/tracks/shuffle"
|
||||
}
|
||||
);
|
||||
|
||||
Response(403, "The request failed because the user making the request is not an Admin, or the owner of the media library.", "application/problem+json",
|
||||
example: new
|
||||
{
|
||||
type = "https://tools.ietf.org/html/rfc9110#section-15.5.4",
|
||||
title = "General.Unauthorized",
|
||||
status = 403,
|
||||
detail = "NotAuthorized",
|
||||
instance = $"/api/v1/libraries/{Guid.NewGuid()}/tracks/shuffle",
|
||||
traceId = "00-a712bbf99ca8ab485f86a762ae5ae74d-b3a2eb78813b0a5d-00"
|
||||
}
|
||||
);
|
||||
|
||||
Response(422, "The request did not pass validation checks.", "application/problem+json",
|
||||
example: new
|
||||
{
|
||||
type = "https://tools.ietf.org/html/rfc4918#section-11.2",
|
||||
title = "General.Validation",
|
||||
status = 422,
|
||||
detail = "OneOrMoreValidationErrorsOccurred",
|
||||
instance = $"/api/v1/libraries/{Guid.NewGuid()}/tracks/shuffle",
|
||||
errors = new Dictionary<string, string[]>
|
||||
{
|
||||
{
|
||||
"General.Validation", new[]
|
||||
{
|
||||
"LibraryIdCannotBeEmpty",
|
||||
"ShuffleTrackCountMustBeGreaterThanZero",
|
||||
"ShuffleTrackCountMustBeAtMost500"
|
||||
}
|
||||
}
|
||||
},
|
||||
traceId = "00-2470be4248a2a5a0c6f70579975a6954-b9c3ba9544a03500-00"
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -26,6 +26,11 @@ public class MusicAlbumDto
|
||||
/// </summary>
|
||||
public Guid ArtistId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the artist the album belongs to.
|
||||
/// </summary>
|
||||
public string ArtistName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the media library this album belongs to.
|
||||
/// </summary>
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for a track returned by a randomized shuffle query.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public class MusicShuffleTrackDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the track.
|
||||
/// </summary>
|
||||
public Guid TrackId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the title of the track.
|
||||
/// </summary>
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the duration of the track in seconds.
|
||||
/// </summary>
|
||||
public int DurationInSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the album the track belongs to.
|
||||
/// </summary>
|
||||
public Guid AlbumId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the title of the album the track belongs to.
|
||||
/// </summary>
|
||||
public string AlbumTitle { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the artist the album belongs to.
|
||||
/// </summary>
|
||||
public Guid ArtistId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path of the cover of the album, if available.
|
||||
/// </summary>
|
||||
public string? CoverPath { get; set; }
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Tracks;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to draw a random selection of tracks from a media library, an artist or an album.
|
||||
/// </summary>
|
||||
/// <param name="LibraryId">The unique identifier of the media library the tracks are sampled from. Required.</param>
|
||||
/// <param name="Count">The maximum number of tracks to return. Required.</param>
|
||||
/// <param name="ArtistId">The unique identifier of the artist whose tracks are sampled. Optional.</param>
|
||||
/// <param name="AlbumId">The unique identifier of the album whose tracks are sampled. Optional.</param>
|
||||
/// <param name="ExcludedTrackIds">The tracks that must not be returned, usually the ones already in the queue. Optional.</param>
|
||||
[DebuggerDisplay("LibraryId: {LibraryId} Count: {Count}")]
|
||||
public record ShuffleTracksRequest(
|
||||
Guid LibraryId,
|
||||
int Count,
|
||||
Guid? ArtistId,
|
||||
Guid? AlbumId,
|
||||
List<Guid>? ExcludedTrackIds
|
||||
);
|
||||
@@ -21,6 +21,7 @@ public static partial class ApiRoutes
|
||||
public const string UPDATE_ALBUM_COVER = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/cover";
|
||||
public const string DELETE_ALBUM = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}";
|
||||
public const string GET_ALBUM_TRACKS_LITE = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/lite";
|
||||
public const string SHUFFLE_TRACKS = "libraries/{libraryId}/tracks/shuffle";
|
||||
public const string GET_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string UPDATE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string DELETE_TRACK = "libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
|
||||
@@ -24,6 +24,7 @@ public static partial class WebRoutes
|
||||
public const string UPDATE_ALBUM_COVER = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-update-cover";
|
||||
public const string DELETE_ALBUM = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/api-delete-album";
|
||||
public const string GET_ALBUM_TRACKS = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/api-get-tracks";
|
||||
public const string SHUFFLE_TRACKS = "{culture}/library/audio-library/music-library/tracks/api-shuffle-tracks";
|
||||
public const string TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}";
|
||||
public const string GET_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-get-track";
|
||||
public const string SAVE_TRACK = "{culture}/library/audio-library/music-library/artists/{artistId}/albums/{albumId}/tracks/{trackId}/api-save-track";
|
||||
|
||||
+11
@@ -14,6 +14,7 @@ using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading;
|
||||
@@ -88,6 +89,13 @@ public class EditMusicAlbumViewEndpoint : BaseEndpoint<GetMusicAlbumViewRequest,
|
||||
request = request with { AlbumId = Guid.TryParse(request.AlbumId, out Guid albumId) ? albumId.ToString() : Guid.Empty.ToString() };
|
||||
MusicAlbumDto album = await _apiHttpClient.GetAsync<MusicAlbumDto>(ApiRoutes.Music.GET_ALBUM.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{artistId}", request.ArtistId).Replace("{albumId}", request.AlbumId), cancellationToken).ConfigureAwait(false);
|
||||
string title = album.Metadata?.Title ?? string.Empty;
|
||||
// The play album trigger presents the album, so it carries the same cover this page displays: the stored cover, or the first stored artwork when the album has no cover.
|
||||
string albumCoverPath = album.CoverPath ?? string.Empty;
|
||||
if (string.IsNullOrWhiteSpace(albumCoverPath))
|
||||
albumCoverPath = (album.Artwork ?? []).FirstOrDefault(artwork => !string.IsNullOrWhiteSpace(artwork.Path))?.Path ?? string.Empty;
|
||||
// A release the API already reported as empty has nothing to play, so the themed play trigger starts disabled. The
|
||||
// release list the page loads later only refines this state, and a failed request never changes it.
|
||||
bool albumHasTracks = (album.Tracks?.Count ?? 0) > 0;
|
||||
|
||||
// The themed view is a regular page that submits its own requests, so a fresh anti-forgery token must be issued for it.
|
||||
AntiforgeryTokenSet antiforgeryTokens = _antiforgery.GetAndStoreTokens(HttpContext);
|
||||
@@ -109,6 +117,9 @@ public class EditMusicAlbumViewEndpoint : BaseEndpoint<GetMusicAlbumViewRequest,
|
||||
["trackUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Music.TRACK, new { artistId = default(Guid), albumId = default(Guid), trackId = default(Guid) }) ?? string.Empty,
|
||||
["coverUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Music.UPDATE_ALBUM_COVER, new { artistId = default(Guid), albumId = default(Guid) }) ?? string.Empty,
|
||||
["backUrl"] = (_urlService.GetAbsoluteUrl(WebRoutes.Music.ARTIST, new { artistId = album.ArtistId }) ?? string.Empty) + "?libraryId=" + album.LibraryId,
|
||||
["albumTitle"] = title,
|
||||
["albumCoverPath"] = albumCoverPath,
|
||||
["albumHasTracks"] = albumHasTracks,
|
||||
["albumJson"] = JsonSerializer.Serialize(album, s_camelCaseJsonOptions),
|
||||
["strings"] = ThemePageDataFactory.CreateLocalizedStrings(_localizer),
|
||||
["stringsJson"] = JsonSerializer.Serialize(ThemePageDataFactory.CreateLocalizedStrings(_localizer), s_camelCaseJsonOptions)
|
||||
|
||||
+6
@@ -87,6 +87,9 @@ public class EditMusicArtistViewEndpoint : BaseEndpoint<GetMusicArtistViewReques
|
||||
request = request with { ArtistId = Guid.TryParse(request.ArtistId, out Guid artistId) ? artistId.ToString() : Guid.Empty.ToString() };
|
||||
MusicArtistDto artist = await _apiHttpClient.GetAsync<MusicArtistDto>(ApiRoutes.Music.GET_ARTIST.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{artistId}", request.ArtistId), cancellationToken).ConfigureAwait(false);
|
||||
string title = artist.Metadata?.Name ?? string.Empty;
|
||||
// An artist the API already reported without releases has nothing to play, so the themed play trigger starts disabled.
|
||||
// The release list the page loads later only refines this state, and a failed request never changes it.
|
||||
bool artistHasReleases = (artist.Albums?.Count ?? 0) > 0;
|
||||
|
||||
// The themed view is a regular page that submits its own requests, so a fresh anti-forgery token must be issued for it.
|
||||
AntiforgeryTokenSet antiforgeryTokens = _antiforgery.GetAndStoreTokens(HttpContext);
|
||||
@@ -108,6 +111,9 @@ public class EditMusicArtistViewEndpoint : BaseEndpoint<GetMusicArtistViewReques
|
||||
["deleteAlbumUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Music.DELETE_ALBUM, new { artistId = default(Guid), albumId = default(Guid) }) ?? string.Empty,
|
||||
["coverUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Music.UPDATE_ARTIST_COVER, new { artistId = default(Guid) }) ?? string.Empty,
|
||||
["backUrl"] = (_urlService.GetAbsoluteUrl(WebRoutes.Music.ARTISTS_INDEX) ?? string.Empty) + "?libraryId=" + artist.LibraryId,
|
||||
["artistName"] = title,
|
||||
["artistCoverPath"] = artist.CoverPath ?? string.Empty,
|
||||
["artistHasReleases"] = artistHasReleases,
|
||||
["artistJson"] = JsonSerializer.Serialize(artist, s_camelCaseJsonOptions),
|
||||
["strings"] = ThemePageDataFactory.CreateLocalizedStrings(_localizer),
|
||||
["stringsJson"] = JsonSerializer.Serialize(ThemePageDataFactory.CreateLocalizedStrings(_localizer), s_camelCaseJsonOptions)
|
||||
|
||||
+14
-2
@@ -14,6 +14,7 @@ using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading;
|
||||
@@ -95,6 +96,12 @@ public class EditMusicTrackViewEndpoint : BaseEndpoint<GetMusicTrackViewRequest,
|
||||
// The cover shown on the left of the track page is the cover of the album that holds the track, so the album is fetched alongside the track.
|
||||
MusicAlbumDto album = await _apiHttpClient.GetAsync<MusicAlbumDto>(
|
||||
ApiRoutes.Music.GET_ALBUM.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{artistId}", normalizedArtistId).Replace("{albumId}", normalizedAlbumId), cancellationToken).ConfigureAwait(false);
|
||||
// The track page and its play trigger show the same cover the album page shows: the stored cover, or the first stored
|
||||
// artwork when the album has no cover. It is resolved once and used for both the themed page data and the fallback view.
|
||||
string albumCoverPath = album.CoverPath ?? string.Empty;
|
||||
if (string.IsNullOrWhiteSpace(albumCoverPath))
|
||||
albumCoverPath = (album.Artwork ?? []).FirstOrDefault(artwork => !string.IsNullOrWhiteSpace(artwork.Path))?.Path ?? string.Empty;
|
||||
string albumTitle = album.Metadata?.Title ?? string.Empty;
|
||||
|
||||
// The themed view is a regular page that submits its own requests, so a fresh anti-forgery token must be issued for it.
|
||||
AntiforgeryTokenSet antiforgeryTokens = _antiforgery.GetAndStoreTokens(HttpContext);
|
||||
@@ -114,7 +121,10 @@ public class EditMusicTrackViewEndpoint : BaseEndpoint<GetMusicTrackViewRequest,
|
||||
["saveUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Music.SAVE_TRACK, new { artistId = default(Guid), albumId = default(Guid), trackId = default(Guid) }) ?? string.Empty,
|
||||
["deleteUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Music.DELETE_TRACK, new { artistId = default(Guid), albumId = default(Guid), trackId = default(Guid) }) ?? string.Empty,
|
||||
["backUrl"] = (_urlService.GetAbsoluteUrl(WebRoutes.Music.ALBUM, new { artistId = normalizedArtistId, albumId = track.AlbumId }) ?? string.Empty) + "?libraryId=" + track.LibraryId,
|
||||
["albumCoverPath"] = album.CoverPath ?? string.Empty,
|
||||
["albumCoverPath"] = albumCoverPath,
|
||||
["albumTitle"] = albumTitle,
|
||||
["trackTitle"] = title,
|
||||
["trackDurationInSeconds"] = track.Metadata?.DurationInSeconds,
|
||||
["trackJson"] = JsonSerializer.Serialize(track, s_camelCaseJsonOptions),
|
||||
["strings"] = ThemePageDataFactory.CreateLocalizedStrings(_localizer),
|
||||
["stringsJson"] = JsonSerializer.Serialize(ThemePageDataFactory.CreateLocalizedStrings(_localizer), s_camelCaseJsonOptions)
|
||||
@@ -127,7 +137,9 @@ public class EditMusicTrackViewEndpoint : BaseEndpoint<GetMusicTrackViewRequest,
|
||||
Dictionary<string, object?> viewData = new()
|
||||
{
|
||||
["Title"] = title,
|
||||
["AlbumCoverPath"] = album.CoverPath ?? string.Empty
|
||||
["ArtistId"] = normalizedArtistId,
|
||||
["AlbumCoverPath"] = albumCoverPath,
|
||||
["AlbumTitle"] = albumTitle
|
||||
};
|
||||
return View("/Core/Views/Library/AudioLibrary/MusicLibrary/Tracks/Item.cshtml", track, viewData);
|
||||
}
|
||||
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Tracks;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.AudioLibrary.MusicLibrary.Tracks.ShuffleTracks;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/audio-library/music-library/tracks/api-shuffle-tracks</c> route.
|
||||
/// </summary>
|
||||
public class ShuffleTracksEndpoint : BaseEndpoint<ShuffleTracksRequest, IResult>
|
||||
{
|
||||
private readonly IApiHttpClient _apiHttpClient;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShuffleTracksEndpoint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
|
||||
public ShuffleTracksEndpoint(IApiHttpClient apiHttpClient)
|
||||
{
|
||||
_apiHttpClient = apiHttpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configures the endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
base.Configure();
|
||||
Verbs(Http.POST);
|
||||
Routes(WebRoutes.Music.SHUFFLE_TRACKS);
|
||||
DontAutoTag();
|
||||
Options(options => options.WithTags("Music"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a random selection of tracks of the library identified in the request.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the selection size, the optional scope and the tracks to exclude.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(ShuffleTracksRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
List<MusicShuffleTrackDto> response = await _apiHttpClient.PostAsync<List<MusicShuffleTrackDto>, ShuffleTracksRequest>(
|
||||
BuildEndpoint(request.LibraryId), request, cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Builds the API endpoint used to retrieve a random selection of tracks.
|
||||
/// </summary>
|
||||
/// <param name="libraryId">The Id of the media library the tracks are sampled from.</param>
|
||||
/// <returns>The API endpoint to which the retrieval request is sent.</returns>
|
||||
private static string BuildEndpoint(Guid libraryId)
|
||||
{
|
||||
// The strongly typed Id is formatted as a Guid, so the substituted route value can never escape its URL segment.
|
||||
return ApiRoutes.Music.SHUFFLE_TRACKS.Replace("{libraryId}", libraryId.ToString());
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.DTO.AudioLibrary.MusicLibrary;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.Tracks;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.AudioLibrary.MusicLibrary.Tracks.ShuffleTracks;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="ShuffleTracksEndpoint"/> endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class ShuffleTracksEndpointSummary : Summary<ShuffleTracksEndpoint, ShuffleTracksRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ShuffleTracksEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public ShuffleTracksEndpointSummary()
|
||||
{
|
||||
Summary = "Draws a random selection of tracks from a media library, an artist or an album.";
|
||||
Description = "Returns uniformly random tracks from the whole library, one artist, or one album, excluding the tracks the caller already queued. The tracks are selected by the API database, so a large library does not have to be enumerated by the browser.";
|
||||
|
||||
Response(200, "The random selection of tracks is returned.", example: new[] { new MusicShuffleTrackDto
|
||||
{
|
||||
TrackId = Guid.NewGuid(),
|
||||
Title = "Bohemian Rhapsody",
|
||||
DurationInSeconds = 354,
|
||||
AlbumId = Guid.NewGuid(),
|
||||
AlbumTitle = "A Night at the Opera",
|
||||
ArtistId = Guid.NewGuid(),
|
||||
CoverPath = "/music/queen/a-night-at-the-opera/cover.jpg"
|
||||
}});
|
||||
}
|
||||
}
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>لا يمكن أن تكون جودة البث فارغة!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>يجب أن يكون عدد المقطوعات العشوائية أكبر من صفر!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>يجب ألا يتجاوز عدد المقطوعات العشوائية 500!</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>Die Streaming-Qualität darf nicht null sein!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>Die Anzahl der Shuffle-Titel muss größer als null sein!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Die Anzahl der Shuffle-Titel darf höchstens 500 betragen!</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>The streaming quality cannot be null!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>The shuffle track count must be greater than zero!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>The shuffle track count must be at most 500!</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>¡La calidad de transmisión no puede ser nula!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>¡La cantidad de pistas de reproducción aleatoria debe ser mayor que cero!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>¡La cantidad de pistas de reproducción aleatoria no debe superar 500!</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>La qualité de diffusion ne peut pas être nulle !</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>Le nombre de pistes du shuffle doit être supérieur à zéro !</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Le nombre de pistes du shuffle ne doit pas dépasser 500 !</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>La qualità dello streaming non può essere nulla!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>Il numero di brani dello shuffle deve essere maggiore di zero!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Il numero di brani dello shuffle non può superare 500!</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>ストリーミング品質は null にできません。</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>シャッフルするトラック数は 0 より大きい必要があります。</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>シャッフルするトラック数は 500 以下である必要があります。</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>The streaming quality cannot be null!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>The shuffle track count must be greater than zero!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>The shuffle track count must be at most 500!</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>Calitatea fluxului nu poate fi nulă!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>Numărul de piste pentru redare aleatorie trebuie să fie mai mare decât zero!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Numărul de piste pentru redare aleatorie nu poate depăși 500!</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>Якість потокового передавання не може бути порожньою!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>Кількість треків для перемішування має бути більшою за нуль!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>Кількість треків для перемішування не може перевищувати 500!</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -843,4 +843,10 @@
|
||||
<data name="StreamingQualityCannotBeNull" xml:space="preserve">
|
||||
<value>流媒体质量不能为空!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeGreaterThanZero" xml:space="preserve">
|
||||
<value>随机播放曲目数必须大于零!</value>
|
||||
</data>
|
||||
<data name="ShuffleTrackCountMustBeAtMost500" xml:space="preserve">
|
||||
<value>随机播放曲目数不能超过 500!</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>لا توجد مكتبات</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>تشغيل عشوائي</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>تشغيل</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>الإجراءات</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>Keine Bibliotheken</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Zufällige Wiedergabe</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Abspielen</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Aktionen</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>No libraries</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Shuffle</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Play</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Actions</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>Sin bibliotecas</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Aleatorio</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Reproducir</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Acciones</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>Aucune bibliothèque</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Lecture aléatoire</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Lecture</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Actions</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>Nessuna libreria</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Riproduzione casuale</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Riproduci</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Azioni</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>ライブラリがありません</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>シャッフル</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>再生</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>æ“作</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>No libraries</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Shuffle</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Play</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Actions</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>Nicio bibliotecă</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Aleatoriu</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Redare</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Acțiuni</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>Немає бібліотек</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Перемішати</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Відтворити</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Дії</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -120,4 +120,13 @@
|
||||
<data name="NoLibraries" xml:space="preserve">
|
||||
<value>无库</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>随机播放</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>播放</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>æ“作</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>المعرّفات</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>تشغيل الألبوم</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>تشغيل المقطع</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>Kennungen</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>Album abspielen</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Titel abspielen</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>Identifiers</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>Play album</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Play track</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>Identificadores</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>Reproducir el álbum</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Reproducir la pista</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>Identifiants</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>Lire l'album</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Lire la piste</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>Identificatori</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>Riproduci l'album</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Riproduci il brano</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>識別子</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>アルバムを再生</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>トラックを再生</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>Identifiers</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>Play album</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Play track</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>Identificatori</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>Redă albumul</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Redă piesa</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>Ідентифікатори</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>Відтворити альбом</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Відтворити трек</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -1506,4 +1506,10 @@
|
||||
<data name="Identifiers" xml:space="preserve">
|
||||
<value>标识符</value>
|
||||
</data>
|
||||
<data name="PlayAlbum" xml:space="preserve">
|
||||
<value>播放专辑</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>播放曲目</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>تعذر حذف العنصر.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>تشغيل عشوائي</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>تشغيل</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>الإجراءات</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>Das Element konnte nicht gelöscht werden.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Zufällige Wiedergabe</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Abspielen</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Aktionen</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>The item could not be deleted.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Shuffle</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Play</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Actions</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>No se ha podido eliminar el elemento.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Aleatorio</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Reproducir</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Acciones</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>L'élément n'a pas pu être supprimé.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Lecture aléatoire</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Lecture</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Actions</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>Non è stato possibile eliminare l'elemento.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Riproduzione casuale</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Riproduci</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Azioni</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>項目を削除できませんでした。</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>シャッフル</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>再生</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>æ“作</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>The item could not be deleted.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Shuffle</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Play</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Actions</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>Elementul nu a putut fi șters.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Aleatoriu</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Redare</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Acțiuni</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>Не вдалося видалити елемент.</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Перемішати</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Відтворити</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>Дії</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -57,4 +57,13 @@
|
||||
<data name="DeleteFailed" xml:space="preserve">
|
||||
<value>无法删除该项目。</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>随机播放</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>播放</value>
|
||||
</data>
|
||||
<data name="Actions" xml:space="preserve">
|
||||
<value>æ“作</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>إضافة ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>تشغيل الكل</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>تشغيل</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>تشغيل عشوائي</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>ISNI hinzufügen</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>Alle abspielen</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Abspielen</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Zufällige Wiedergabe</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>Add ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>Play all</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Play</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Shuffle</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>Añadir ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>Reproducir todo</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Reproducir</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Aleatorio</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>Ajouter un ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>Tout lire</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Lire</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Lecture aléatoire</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>Aggiungi ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>Riproduci tutto</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Riproduci</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Riproduzione casuale</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>ISNI を追加</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>すべて再生</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>再生</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>シャッフル</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>Add ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>Play all</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Play</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Shuffle</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>Adaugă ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>Redă tot</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Redă</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Aleatoriu</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>Додати ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>Відтворити все</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>Відтворити</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>Перемішати</value>
|
||||
</data>
|
||||
</root>
|
||||
+9
@@ -1083,4 +1083,13 @@
|
||||
<data name="AddIsni" xml:space="preserve">
|
||||
<value>添加 ISNI</value>
|
||||
</data>
|
||||
<data name="PlayAll" xml:space="preserve">
|
||||
<value>全部播放</value>
|
||||
</data>
|
||||
<data name="Play" xml:space="preserve">
|
||||
<value>播放</value>
|
||||
</data>
|
||||
<data name="Shuffle" xml:space="preserve">
|
||||
<value>随机播放</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>إضافة ISWC</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>تشغيل المقطع</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>ISWC hinzufügen</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Titel abspielen</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>Add ISWC</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Play track</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>Añadir ISWC</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Reproducir la pista</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>Ajouter un ISWC</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Lire la piste</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>Aggiungi ISWC</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Riproduci il brano</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>ISWC を追加</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>トラックを再生</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>Add ISWC</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Play track</value>
|
||||
</data>
|
||||
</root>
|
||||
+3
@@ -1179,4 +1179,7 @@
|
||||
<data name="AddWorkIswc" xml:space="preserve">
|
||||
<value>Adaugă ISWC</value>
|
||||
</data>
|
||||
<data name="PlayTrack" xml:space="preserve">
|
||||
<value>Redă piesa</value>
|
||||
</data>
|
||||
</root>
|
||||
Loaded 100 of 132 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user