diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 7739df6..e72df11 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -14,7 +14,7 @@ "/property:GenerateFullPaths=true", // Do not generate summary otherwise it leads to duplicate errors in Problems panel "/consoleloggerparameters:NoSummary", - "/property:Version=10.7.0.1" + "/property:Version=10.7.0.2" ], "group": "build", "presentation": { @@ -29,7 +29,7 @@ "args": [ "Compress-Archive", "-Path", "${workspaceFolder}/src/Jellyfin.Plugin.Kinopoisk/bin/Debug/net5.0/Jellyfin.Plugin.Kinopoisk.dll,${workspaceFolder}/src/Jellyfin.Plugin.Kinopoisk.Test/bin/Debug/net5.0/Macross.Json.Extensions.dll", - "-DestinationPath", "${workspaceFolder}/dist/jellyfin-plugin-kinopoisk_10.7.0.1.zip" + "-DestinationPath", "${workspaceFolder}/dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip" ], "group": "build", "presentation": { diff --git a/dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip b/dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip new file mode 100644 index 0000000..d13d0b8 Binary files /dev/null and b/dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip differ diff --git a/dist/manifest.json b/dist/manifest.json index fb24f22..7128c17 100644 --- a/dist/manifest.json +++ b/dist/manifest.json @@ -7,6 +7,17 @@ "owner": "linfor", "description": "Загружает рейтинги сайта КиноПоиск", "versions": [ + { + "checksum": "8d77d5f4de0bdf0abbce76cf8e5a251d", + "changelog": "Fixed rating parsing", + "name": "КиноПоиск", + "targetAbi": "10.7.0", + "runtimes": "netframework,netcore", + "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip", + "filename": "jellyfin-plugin-kinopoisk_10.7.0.2.zip", + "timestamp": "2021-04-06 18:12:00", + "version": "10.7.0.2" + }, { "checksum": "9051c982f7846af34249ed9969012c17", "changelog": "Fixed some actor professions parsing", diff --git a/src/Jellyfin.Plugin.Kinopoisk/ApiModel/FilmDetails.cs b/src/Jellyfin.Plugin.Kinopoisk/ApiModel/FilmDetails.cs index 25c84d4..c84531b 100644 --- a/src/Jellyfin.Plugin.Kinopoisk/ApiModel/FilmDetails.cs +++ b/src/Jellyfin.Plugin.Kinopoisk/ApiModel/FilmDetails.cs @@ -62,11 +62,11 @@ namespace Jellyfin.Plugin.Kinopoisk.ApiModel public class FilmRating { public float Rating { get; set; } - public int RatingVoteCount { get; set; } + public int? RatingVoteCount { get; set; } public float? RatingImdb { get; set; } - public int RatingImdbVoteCount { get; set; } + public int? RatingImdbVoteCount { get; set; } public string RatingFilmCritics { get; set; } - public int RatingFilmCriticsVoteCount { get; set; } + public int? RatingFilmCriticsVoteCount { get; set; } } public class FilmImages