diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 2eb250f..f95bb99 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.6.0.1"
+ "/property:Version=10.6.0.2"
],
"group": "build",
"presentation": {
@@ -29,7 +29,7 @@
"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.1.zip"
+ "-DestinationPath", "${workspaceFolder}/dist/jellyfin-plugin-kinopoisk_10.6.0.2.zip"
],
"group": "build",
"presentation": {
diff --git a/Samsung Smart TV.xml b/Samsung Smart TV.xml
new file mode 100644
index 0000000..7aeb7d9
--- /dev/null
+++ b/Samsung Smart TV.xml
@@ -0,0 +1,137 @@
+
+
+ Samsung Smart TV
+
+
+
+
+
+
+ samsung.com
+
+
+
+
+
+
+
+ Jellyfin
+ https://github.com/jellyfin/jellyfin
+ Jellyfin Server
+ 01
+ https://github.com/jellyfin/jellyfin
+
+ true
+ true
+ false
+ Audio,Photo,Video
+
+ JPEG_SM
+ 480
+ 480
+ 48
+ 48
+ 140000000
+ 140000000
+ 192000
+
+
+ http-get:*:video/mpeg:*,http-get:*:video/mp4:*,http-get:*:video/vnd.dlna.mpeg-tts:*,http-get:*:video/avi:*,http-get:*:video/x-matroska:*,http-get:*:video/x-ms-wmv:*,http-get:*:video/wtv:*,http-get:*:audio/mpeg:*,http-get:*:audio/mp3:*,http-get:*:audio/mp4:*,http-get:*:audio/x-ms-wma:*,http-get:*:audio/wav:*,http-get:*:audio/L16:*,http-get:*:image/jpeg:*,http-get:*:image/png:*,http-get:*:image/gif:*,http-get:*:image/tiff:*
+ 0
+ true
+ true
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Samsung SmartTV - plex.xml b/Samsung SmartTV - plex.xml
new file mode 100644
index 0000000..2e75f1f
--- /dev/null
+++ b/Samsung SmartTV - plex.xml
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dist/jellyfin-plugin-kinopoisk_10.6.0.2.md5 b/dist/jellyfin-plugin-kinopoisk_10.6.0.2.md5
new file mode 100644
index 0000000..c4e9e7d
--- /dev/null
+++ b/dist/jellyfin-plugin-kinopoisk_10.6.0.2.md5
@@ -0,0 +1 @@
+50674e215597995b96da17b49ee7ad62 *jellyfin-plugin-kinopoisk_10.6.0.2.zip
diff --git a/dist/jellyfin-plugin-kinopoisk_10.6.0.2.zip b/dist/jellyfin-plugin-kinopoisk_10.6.0.2.zip
new file mode 100644
index 0000000..3a6703a
Binary files /dev/null and b/dist/jellyfin-plugin-kinopoisk_10.6.0.2.zip differ
diff --git a/dist/manifest.json b/dist/manifest.json
index 1019b4d..0b31fc4 100644
--- a/dist/manifest.json
+++ b/dist/manifest.json
@@ -8,15 +8,15 @@
"description": "Загружает рейтинги сайта КиноПоиск",
"versions": [
{
- "checksum": "8f43d3943f5f60293c6fb0ccbe560096",
- "changelog": "new release",
+ "checksum": "50674e215597995b96da17b49ee7ad62",
+ "changelog": "fix NRE in person provider",
"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"
+ "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/jellyfin-plugin-kinopoisk_10.6.0.2.zip",
+ "filename": "jellyfin-plugin-kinopoisk_10.6.0.2.zip",
+ "timestamp": "2020-07-09 13:00:00",
+ "version": "10.6.0.2"
},
{
"checksum": "a877cde0df7d70266fdb9362b72884c1",
@@ -28,6 +28,17 @@
"filename": "jellyfin-plugin-kinopoisk_10.6.0.1.zip",
"timestamp": "2020-07-07 19:00:00",
"version": "10.6.0.1"
+ },
+ {
+ "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/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs b/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs
index acf9ed1..3846bbc 100644
--- a/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs
+++ b/src/Jellyfin.Plugin.Kinopoisk/ApiModelExtensions.cs
@@ -192,11 +192,11 @@ namespace Jellyfin.Plugin.Kinopoisk
{
Name = src.NameRu,
ImageUrl = src.PosterUrl,
- Role = src.Description,
+ Role = src.Description ?? string.Empty,
Type = src.ProfessionKey.ToPersonType()
};
if (string.IsNullOrWhiteSpace(res.Name))
- res.Name = src.NameEn;
+ res.Name = src.NameEn ?? string.Empty;
res.SetProviderId(Utils.ProviderId, Convert.ToString(src.StaffId));
return res;
@@ -231,7 +231,7 @@ namespace Jellyfin.Plugin.Kinopoisk
case ProfessionEnum.ProducerUssr:
return PersonType.Producer;
default:
- return null;
+ return string.Empty;
}
}