Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
230616e4fc |
No files matched your search
@@ -27,13 +27,13 @@ public class AlbumArtistTask : IScheduledTask
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string Name => "Yandex Music: заполнить исполнителей альбомов";
|
public string Name => "Yandex Music: создать исполнителей";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string Key => "YandexMusicAlbumArtists";
|
public string Key => "YandexMusicAlbumArtists";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string Description => "Заполняет AlbumArtists у треков, чтобы Jellyfin создал исполнителей и альбомы.";
|
public string Description => "Заполняет AlbumArtists и связи исполнителей, чтобы Jellyfin создал страницы исполнителей.";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string Category => "Yandex Music";
|
public string Category => "Yandex Music";
|
||||||
@@ -75,6 +75,30 @@ public class AlbumArtistTask : IScheduledTask
|
|||||||
updated++;
|
updated++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var people = new List<MediaBrowser.Controller.Entities.PersonInfo>();
|
||||||
|
foreach (var name in item.AlbumArtists)
|
||||||
|
{
|
||||||
|
people.Add(new MediaBrowser.Controller.Entities.PersonInfo
|
||||||
|
{
|
||||||
|
Name = name,
|
||||||
|
Type = Jellyfin.Data.Enums.PersonKind.AlbumArtist
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var name in item.Artists)
|
||||||
|
{
|
||||||
|
people.Add(new MediaBrowser.Controller.Entities.PersonInfo
|
||||||
|
{
|
||||||
|
Name = name,
|
||||||
|
Type = Jellyfin.Data.Enums.PersonKind.Artist
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (people.Count > 0)
|
||||||
|
{
|
||||||
|
await _libraryManager.UpdatePeopleAsync(item, people, cancellationToken).ConfigureAwait(false);
|
||||||
|
}
|
||||||
|
|
||||||
progress.Report(100.0 * (i + 1) / Math.Max(1, items.Count));
|
progress.Report(100.0 * (i + 1) / Math.Max(1, items.Count));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.0.0.4</Version>
|
<Version>1.0.0.5</Version>
|
||||||
<AssemblyVersion>1.0.0.4</AssemblyVersion>
|
<AssemblyVersion>1.0.0.5</AssemblyVersion>
|
||||||
<FileVersion>1.0.0.4</FileVersion>
|
<FileVersion>1.0.0.5</FileVersion>
|
||||||
<TargetFramework>net10.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<RootNamespace>Jellyfin.Plugin.YandexMusic</RootNamespace>
|
<RootNamespace>Jellyfin.Plugin.YandexMusic</RootNamespace>
|
||||||
<AssemblyName>Jellyfin.Plugin.YandexMusic</AssemblyName>
|
<AssemblyName>Jellyfin.Plugin.YandexMusic</AssemblyName>
|
||||||
|
|||||||
@@ -91,6 +91,25 @@ public class YandexMusicSongProvider : IRemoteMetadataProvider<Audio, SongInfo>,
|
|||||||
|
|
||||||
audio.Artists = artistNames;
|
audio.Artists = artistNames;
|
||||||
audio.AlbumArtists = albumArtistNames;
|
audio.AlbumArtists = albumArtistNames;
|
||||||
|
|
||||||
|
foreach (var name in artistNames)
|
||||||
|
{
|
||||||
|
result.AddPerson(new MediaBrowser.Controller.Entities.PersonInfo
|
||||||
|
{
|
||||||
|
Name = name,
|
||||||
|
Type = Jellyfin.Data.Enums.PersonKind.Artist
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var name in albumArtistNames)
|
||||||
|
{
|
||||||
|
result.AddPerson(new MediaBrowser.Controller.Entities.PersonInfo
|
||||||
|
{
|
||||||
|
Name = name,
|
||||||
|
Type = Jellyfin.Data.Enums.PersonKind.AlbumArtist
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
AlbumArtistCache.Set(info.Path, albumArtistNames);
|
AlbumArtistCache.Set(info.Path, albumArtistNames);
|
||||||
audio.Album = config.UseYandexAlbumName
|
audio.Album = config.UseYandexAlbumName
|
||||||
? album?.Title ?? info.Album
|
? album?.Title ?? info.Album
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: "Yandex Music"
|
name: "Yandex Music"
|
||||||
guid: "f3b9626b-da14-4cbf-8ad1-33b92cfa6656"
|
guid: "f3b9626b-da14-4cbf-8ad1-33b92cfa6656"
|
||||||
version: "1.0.0.4"
|
version: "1.0.0.5"
|
||||||
targetAbi: "12.4.0.0"
|
targetAbi: "12.4.0.0"
|
||||||
framework: "net10.0"
|
framework: "net10.0"
|
||||||
overview: "Metadata for music from Yandex Music."
|
overview: "Metadata for music from Yandex Music."
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
+5
-5
@@ -9,12 +9,12 @@
|
|||||||
"imageUrl": "",
|
"imageUrl": "",
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"version": "1.0.0.4",
|
"version": "1.0.0.5",
|
||||||
"changelog": "Fill AlbumArtists so Jellyfin creates artists and albums; add composers/lyricists and artist genres.",
|
"changelog": "Add artist people links so the Artists tab works; maintenance task fills them for existing tracks.",
|
||||||
"targetAbi": "12.4.0.0",
|
"targetAbi": "12.4.0.0",
|
||||||
"sourceUrl": "https://git.midns.ru/1xDed/jellyfin-plugin-yandexmusic/raw/branch/main/dist/Jellyfin.Plugin.YandexMusic_1.0.0.4.zip",
|
"sourceUrl": "https://git.midns.ru/1xDed/jellyfin-plugin-yandexmusic/raw/branch/main/dist/Jellyfin.Plugin.YandexMusic_1.0.0.5.zip",
|
||||||
"checksum": "c17a301daee6980d5b2702a30f793ea5",
|
"checksum": "3fa4bff9075e7e074991e8f47af9c26c",
|
||||||
"timestamp": "2026-11-27T16:38:01Z"
|
"timestamp": "2026-11-27T16:53:03Z"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ set -euo pipefail
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
VERSION="1.0.0.4"
|
VERSION="1.0.0.5"
|
||||||
NAME="Jellyfin.Plugin.YandexMusic"
|
NAME="Jellyfin.Plugin.YandexMusic"
|
||||||
PUBLISH_DIR="publish"
|
PUBLISH_DIR="publish"
|
||||||
ARTIFACTS_DIR="${ARTIFACTS_DIR:-artifacts}"
|
ARTIFACTS_DIR="${ARTIFACTS_DIR:-artifacts}"
|
||||||
|
|||||||
Reference in new issue
Block a user