diff --git a/.vscode/tasks.json b/.vscode/tasks.json index cf15b16..04e0bb7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -34,6 +34,21 @@ "reveal": "silent" }, "problemMatcher": "$msCompile" + }, + { + "label": "make-dist", + "command": "powershell", + "type": "shell", + "args": [ + "Compress-Archive", + "-Path", "${workspaceFolder}/src/Jellyfin.Plugin.Kinopoisk/bin/Debug/netstandard2.1/Jellyfin.Plugin.Kinopoisk.dll", + "-DestinationPath", "${workspaceFolder}/dist/jellyfin-plugin-kinopoisk_10.6.0.0.zip" + ], + "group": "build", + "presentation": { + "reveal": "silent" + }, + "problemMatcher": "$msCompile" } ] } diff --git a/dist/jellyfin-plugin-kinopoisk_10.6.0.0.zip b/dist/jellyfin-plugin-kinopoisk_10.6.0.0.zip new file mode 100644 index 0000000..eef9eb5 Binary files /dev/null and b/dist/jellyfin-plugin-kinopoisk_10.6.0.0.zip differ diff --git a/dist/manifest.json b/dist/manifest.json new file mode 100644 index 0000000..6384ce1 --- /dev/null +++ b/dist/manifest.json @@ -0,0 +1,23 @@ +[ + { + "category": "Metadata", + "guid": "0c136f8a-ff77-4f2b-ade5-13462cae6216", + "name": "КиноПоиск", + "overview": "", + "owner": "linfor", + "description": "Загружает рейтинги сайта КиноПоиск", + "versions": [ + { + "checksum": "8f43d3943f5f60293c6fb0ccbe560096", + "changelog": "new release", + "name": "КиноПоиск", + "targetAbi": "10.6.0", + "runtimes": "netframework,netcore", + "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/jellyfin-plugin-kinopoisk_10.6.0.0.zip", + "filename": "jellyfin-plugin-kinopoisk_10.6.0.0.zip", + "timestamp": "2020-07-07 10:00:00", + "version": "10.6.0.0" + } + ] + } +] diff --git a/kinopoisk.code-workspace b/kinopoisk.code-workspace index 876a149..362d7c2 100644 --- a/kinopoisk.code-workspace +++ b/kinopoisk.code-workspace @@ -3,6 +3,5 @@ { "path": "." } - ], - "settings": {} + ] } \ No newline at end of file diff --git a/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs b/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs index 4671cfa..9eed886 100644 --- a/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs +++ b/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using Jellyfin.Plugin.Kinopoisk.ApiModel; using MediaBrowser.Controller.Entities; @@ -69,7 +68,7 @@ namespace Jellyfin.Plugin.Kinopoisk if (src.ExternalId != null) { if (!string.IsNullOrWhiteSpace(src.ExternalId.ImdbId)) - dst.SetProviderId(MetadataProviders.Imdb, src.ExternalId.ImdbId); + dst.SetProviderId(MetadataProvider.Imdb, src.ExternalId.ImdbId); } } diff --git a/src/Jellyfin.Plugin.Kinopoisk/Jellyfin.Plugin.Kinopoisk.csproj b/src/Jellyfin.Plugin.Kinopoisk/Jellyfin.Plugin.Kinopoisk.csproj index 8e03de2..46aba93 100644 --- a/src/Jellyfin.Plugin.Kinopoisk/Jellyfin.Plugin.Kinopoisk.csproj +++ b/src/Jellyfin.Plugin.Kinopoisk/Jellyfin.Plugin.Kinopoisk.csproj @@ -5,8 +5,10 @@ - - + + + diff --git a/src/Jellyfin.Plugin.Kinopoisk/KinopoiskExternalId.cs b/src/Jellyfin.Plugin.Kinopoisk/KinopoiskExternalId.cs index 47e6d32..a282871 100644 --- a/src/Jellyfin.Plugin.Kinopoisk/KinopoiskExternalId.cs +++ b/src/Jellyfin.Plugin.Kinopoisk/KinopoiskExternalId.cs @@ -2,6 +2,7 @@ using MediaBrowser.Controller.Entities.Movies; using MediaBrowser.Controller.Entities.TV; using MediaBrowser.Controller.Providers; using MediaBrowser.Model.Entities; +using MediaBrowser.Model.Providers; namespace Jellyfin.Plugin.Kinopoisk { @@ -15,6 +16,8 @@ namespace Jellyfin.Plugin.Kinopoisk public string UrlFormatString => "https://www.kinopoisk.ru/film/{0}"; + public ExternalIdMediaType? Type => null; + public bool Supports(IHasProviderIds item) { return item is Movie || item is Series;