diff --git a/Jellyfin.Plugin.YandexMusic/Jellyfin.Plugin.YandexMusic.csproj b/Jellyfin.Plugin.YandexMusic/Jellyfin.Plugin.YandexMusic.csproj index be385f8..a7406f7 100644 --- a/Jellyfin.Plugin.YandexMusic/Jellyfin.Plugin.YandexMusic.csproj +++ b/Jellyfin.Plugin.YandexMusic/Jellyfin.Plugin.YandexMusic.csproj @@ -1,6 +1,9 @@ + 1.0.0.1 + 1.0.0.1 + 1.0.0.1 net10.0 Jellyfin.Plugin.YandexMusic Jellyfin.Plugin.YandexMusic diff --git a/Jellyfin.Plugin.YandexMusic/Providers/YandexMusicSongProvider.cs b/Jellyfin.Plugin.YandexMusic/Providers/YandexMusicSongProvider.cs index a07eb48..73d78e0 100644 --- a/Jellyfin.Plugin.YandexMusic/Providers/YandexMusicSongProvider.cs +++ b/Jellyfin.Plugin.YandexMusic/Providers/YandexMusicSongProvider.cs @@ -249,7 +249,7 @@ public class YandexMusicSongProvider : IRemoteMetadataProvider, private static (int? Index, int? Disc) FindPosition(AlbumDto? album, long trackId) { - if (album is null || album.Volumes.Count == 0) + if (album is null || album.Volumes is null || album.Volumes.Count == 0) { return (null, null); } diff --git a/Jellyfin.Plugin.YandexMusic/Yandex/YandexModels.cs b/Jellyfin.Plugin.YandexMusic/Yandex/YandexModels.cs index 7964f72..c99d1d5 100644 --- a/Jellyfin.Plugin.YandexMusic/Yandex/YandexModels.cs +++ b/Jellyfin.Plugin.YandexMusic/Yandex/YandexModels.cs @@ -166,6 +166,7 @@ public sealed class AlbumDto public sealed class LabelDto { [JsonPropertyName("id")] + [JsonConverter(typeof(FlexibleLongConverter))] public long Id { get; set; } [JsonPropertyName("name")] diff --git a/build.yaml b/build.yaml index bfea8a9..8a0337b 100644 --- a/build.yaml +++ b/build.yaml @@ -1,7 +1,7 @@ --- name: "Yandex Music" guid: "f3b9626b-da14-4cbf-8ad1-33b92cfa6656" -version: "1.0.0.0" +version: "1.0.0.1" targetAbi: "12.4.0.0" framework: "net10.0" overview: "Metadata for music from Yandex Music." diff --git a/dist/Jellyfin.Plugin.YandexMusic_1.0.0.1.zip b/dist/Jellyfin.Plugin.YandexMusic_1.0.0.1.zip new file mode 100644 index 0000000..b0aee48 Binary files /dev/null and b/dist/Jellyfin.Plugin.YandexMusic_1.0.0.1.zip differ diff --git a/dist/manifest.json b/dist/manifest.json new file mode 100644 index 0000000..477e837 --- /dev/null +++ b/dist/manifest.json @@ -0,0 +1,21 @@ +[ + { + "guid": "f3b9626b-da14-4cbf-8ad1-33b92cfa6656", + "name": "Yandex Music", + "description": "Metadata, cover art and lyrics from Yandex Music.", + "overview": "Metadata for music from Yandex Music.", + "owner": "kirill", + "category": "Music", + "imageUrl": "", + "versions": [ + { + "version": "1.0.0.1", + "changelog": "First release.", + "targetAbi": "12.4.0.0", + "sourceUrl": "https://git.midns.ru/1xDed/jellyfin-plugin-yandexmusic/raw/branch/main/dist/Jellyfin.Plugin.YandexMusic_1.0.0.1.zip", + "checksum": "cf1c452a0c82bbd417086e9629bbc9c0", + "timestamp": "2026-11-27T15:58:58Z" + } + ] + } +] \ No newline at end of file diff --git a/scripts/package.sh b/scripts/package.sh index 171bdee..6170bd1 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -3,10 +3,10 @@ set -euo pipefail cd "$(dirname "$0")/.." -VERSION="1.0.0.0" +VERSION="1.0.0.1" NAME="Jellyfin.Plugin.YandexMusic" PUBLISH_DIR="publish" -ARTIFACTS_DIR="artifacts" +ARTIFACTS_DIR="${ARTIFACTS_DIR:-artifacts}" BASE_URL="${BASE_URL:-}" DOTNET_BIN="${DOTNET_BIN:-$HOME/.dotnet/dotnet}"