diff --git a/Jellyfin.Api/Controllers/InstantMixController.cs b/Jellyfin.Api/Controllers/InstantMixController.cs
index 2446257528..09351a4775 100644
--- a/Jellyfin.Api/Controllers/InstantMixController.cs
+++ b/Jellyfin.Api/Controllers/InstantMixController.cs
@@ -87,7 +87,7 @@ namespace Jellyfin.Api.Controllers
}
///
- /// Creates an instant playlist based on a given song.
+ /// Creates an instant playlist based on a given album.
///
/// The item id.
/// Optional. Filter by user id, and attach user data.
@@ -123,7 +123,7 @@ namespace Jellyfin.Api.Controllers
}
///
- /// Creates an instant playlist based on a given song.
+ /// Creates an instant playlist based on a given playlist.
///
/// The item id.
/// Optional. Filter by user id, and attach user data.
@@ -159,7 +159,7 @@ namespace Jellyfin.Api.Controllers
}
///
- /// Creates an instant playlist based on a given song.
+ /// Creates an instant playlist based on a given genre.
///
/// The genre name.
/// Optional. Filter by user id, and attach user data.
@@ -173,7 +173,7 @@ namespace Jellyfin.Api.Controllers
/// A with the playlist items.
[HttpGet("MusicGenres/{name}/InstantMix")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public ActionResult> GetInstantMixFromMusicGenre(
+ public ActionResult> GetInstantMixFromMusicGenreByName(
[FromRoute, Required] string name,
[FromQuery] Guid? userId,
[FromQuery] int? limit,
@@ -194,7 +194,7 @@ namespace Jellyfin.Api.Controllers
}
///
- /// Creates an instant playlist based on a given song.
+ /// Creates an instant playlist based on a given artist.
///
/// The item id.
/// Optional. Filter by user id, and attach user data.
@@ -230,7 +230,7 @@ namespace Jellyfin.Api.Controllers
}
///
- /// Creates an instant playlist based on a given song.
+ /// Creates an instant playlist based on a given genre.
///
/// The item id.
/// Optional. Filter by user id, and attach user data.
@@ -244,7 +244,7 @@ namespace Jellyfin.Api.Controllers
/// A with the playlist items.
[HttpGet("MusicGenres/{id}/InstantMix")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public ActionResult> GetInstantMixFromMusicGenres(
+ public ActionResult> GetInstantMixFromMusicGenreById(
[FromRoute, Required] Guid id,
[FromQuery] Guid? userId,
[FromQuery] int? limit,
@@ -266,7 +266,7 @@ namespace Jellyfin.Api.Controllers
}
///
- /// Creates an instant playlist based on a given song.
+ /// Creates an instant playlist based on a given item.
///
/// The item id.
/// Optional. Filter by user id, and attach user data.
@@ -301,6 +301,80 @@ namespace Jellyfin.Api.Controllers
return GetResult(items, user, limit, dtoOptions);
}
+ ///
+ /// Creates an instant playlist based on a given artist.
+ ///
+ /// The item id.
+ /// Optional. Filter by user id, and attach user data.
+ /// Optional. The maximum number of records to return.
+ /// Optional. Specify additional fields of information to return in the output.
+ /// Optional. Include image information in output.
+ /// Optional. Include user data.
+ /// Optional. The max number of images to return, per image type.
+ /// Optional. The image types to include in the output.
+ /// Instant playlist returned.
+ /// A with the playlist items.
+ [HttpGet("Artists/InstantMix")]
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ [Obsolete("Use GetInstantMixFromArtists")]
+ public ActionResult> GetInstantMixFromArtists2(
+ [FromQuery, Required] Guid id,
+ [FromQuery] Guid? userId,
+ [FromQuery] int? limit,
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
+ [FromQuery] bool? enableImages,
+ [FromQuery] bool? enableUserData,
+ [FromQuery] int? imageTypeLimit,
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ImageType[] enableImageTypes)
+ {
+ return GetInstantMixFromArtists(
+ id,
+ userId,
+ limit,
+ fields,
+ enableImages,
+ enableUserData,
+ imageTypeLimit,
+ enableImageTypes);
+ }
+
+ ///
+ /// Creates an instant playlist based on a given genre.
+ ///
+ /// The item id.
+ /// Optional. Filter by user id, and attach user data.
+ /// Optional. The maximum number of records to return.
+ /// Optional. Specify additional fields of information to return in the output.
+ /// Optional. Include image information in output.
+ /// Optional. Include user data.
+ /// Optional. The max number of images to return, per image type.
+ /// Optional. The image types to include in the output.
+ /// Instant playlist returned.
+ /// A with the playlist items.
+ [HttpGet("MusicGenres/InstantMix")]
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ [Obsolete("Use GetInstantMixFromMusicGenres instead")]
+ public ActionResult> GetInstantMixFromMusicGenreById2(
+ [FromQuery, Required] Guid id,
+ [FromQuery] Guid? userId,
+ [FromQuery] int? limit,
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ItemFields[] fields,
+ [FromQuery] bool? enableImages,
+ [FromQuery] bool? enableUserData,
+ [FromQuery] int? imageTypeLimit,
+ [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] ImageType[] enableImageTypes)
+ {
+ return GetInstantMixFromMusicGenreById(
+ id,
+ userId,
+ limit,
+ fields,
+ enableImages,
+ enableUserData,
+ imageTypeLimit,
+ enableImageTypes);
+ }
+
private QueryResult GetResult(List items, User? user, int? limit, DtoOptions dtoOptions)
{
var list = items;