diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 601737b..06328c0 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -14,11 +14,15 @@ RUN if [ "$INSTALL_AZURE_CLI" = "true" ]; then bash /tmp/library-scripts/azcli-d && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts # [Optional] Uncomment this section to install additional OS packages. -# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install --no-install-recommends +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends \ + python3 \ + pip \ + && pip install jprm \ + && apt-get clean -y && rm -rf /var/lib/apt/lists/* # [Optional] Uncomment this line to install global node packages. # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1 COPY library-scripts/jellyfin-web-install.sh /tmp/library-scripts/ -RUN /tmp/library-scripts/jellyfin-web-install.sh && rm -rf /tmp/library-scripts \ No newline at end of file +RUN /tmp/library-scripts/jellyfin-web-install.sh && rm -rf /tmp/library-scripts diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 48684bb..bef4d1a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,7 +6,7 @@ { "label": "build", "command": "dotnet", - "type": "shell", + "type": "process", "args": [ "build", "${workspaceFolder:workspace}/src/Kinopoisk.sln", @@ -25,11 +25,12 @@ { "label": "publish-to-run", "command": "dotnet", - "type": "shell", + "type": "process", "args": [ "publish", "${workspaceFolder:workspace}/src/Jellyfin.Plugin.Kinopoisk/Jellyfin.Plugin.Kinopoisk.csproj", - "--output", "/jellyfin-data/plugins/kinopoisk", + "--output", + "/jellyfin-data/plugins/kinopoisk", "/property:GenerateFullPaths=true", "/property:Version=10.7.0.2" ], @@ -38,18 +39,37 @@ }, { "label": "make-dist", - "command": "powershell", - "type": "shell", + "command": "jprm", + "type": "process", "args": [ - "Compress-Archive", - "-Path", "${workspaceFolder:workspace}/src/Jellyfin.Plugin.Kinopoisk/bin/Debug/net5.0/Jellyfin.Plugin.Kinopoisk.dll,${workspaceFolder:workspace}/src/Jellyfin.Plugin.Kinopoisk.Test/bin/Debug/net5.0/Macross.Json.Extensions.dll", - "-DestinationPath", "${workspaceFolder:workspace}/dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip" + "-v", "DEBUG", + "plugin", "build", "${workspaceFolder:workspace}/src/Jellyfin.Plugin.Kinopoisk/" ], - "group": "build", + "options": { + "cwd": "${workspaceFolder:workspace}/" + }, + "group": "none", "presentation": { "reveal": "silent" }, "problemMatcher": "$msCompile" + }, + { + "label": "make-dist-publish", + "command": "bash", + "type": "process", + "args": [ + "${workspaceFolder:workspace}/publish.sh" + ], + "options": { + "cwd": "${workspaceFolder:workspace}/" + }, + "group": "none", + "presentation": { + "reveal": "silent" + }, + "problemMatcher": "$msCompile", + // "dependsOn": ["make-dist"] } ] } diff --git a/dist/jellyfin-plugin-kinopoisk_10.6.0.0.zip b/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.0.zip similarity index 100% rename from dist/jellyfin-plugin-kinopoisk_10.6.0.0.zip rename to dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.0.zip diff --git a/dist/jellyfin-plugin-kinopoisk_10.6.0.1.zip b/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.1.zip similarity index 100% rename from dist/jellyfin-plugin-kinopoisk_10.6.0.1.zip rename to dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.1.zip diff --git a/dist/jellyfin-plugin-kinopoisk_10.6.0.2.zip b/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.2.zip similarity index 100% rename from dist/jellyfin-plugin-kinopoisk_10.6.0.2.zip rename to dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.2.zip diff --git a/dist/jellyfin-plugin-kinopoisk_10.7.0.0.zip b/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.0.zip similarity index 100% rename from dist/jellyfin-plugin-kinopoisk_10.7.0.0.zip rename to dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.0.zip diff --git a/dist/jellyfin-plugin-kinopoisk_10.7.0.1.zip b/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.1.zip similarity index 100% rename from dist/jellyfin-plugin-kinopoisk_10.7.0.1.zip rename to dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.1.zip diff --git a/dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip b/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.2.zip similarity index 100% rename from dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip rename to dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.2.zip diff --git a/dist/kinopoisk/kinopoisk_10.7.0.3.zip b/dist/kinopoisk/kinopoisk_10.7.0.3.zip new file mode 100644 index 0000000..7bb5115 Binary files /dev/null and b/dist/kinopoisk/kinopoisk_10.7.0.3.zip differ diff --git a/dist/manifest.json b/dist/manifest.json index 7128c17..929826d 100644 --- a/dist/manifest.json +++ b/dist/manifest.json @@ -2,18 +2,27 @@ { "category": "Metadata", "guid": "0c136f8a-ff77-4f2b-ade5-13462cae6216", - "name": "КиноПоиск", - "overview": "", + "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", + "overview": "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u0438 \u0441\u0430\u0439\u0442\u0430 \u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "owner": "linfor", - "description": "Загружает рейтинги сайта КиноПоиск", + "description": "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u0438 \u0441\u0430\u0439\u0442\u0430 \u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a\n", + "imageUrl": "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png", "versions": [ + { + "version": "10.7.0.3", + "changelog": "Don't provide empty poster Added kinopoisk hyperlink in people info\n", + "targetAbi": "10.7.0", + "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.3.zip", + "checksum": "d58cdb87e4e93b7ab1b22c14248841e2", + "timestamp": "2021-05-21T16:00:03Z" + }, { "checksum": "8d77d5f4de0bdf0abbce76cf8e5a251d", "changelog": "Fixed rating parsing", - "name": "КиноПоиск", + "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "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", + "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/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" @@ -21,10 +30,10 @@ { "checksum": "9051c982f7846af34249ed9969012c17", "changelog": "Fixed some actor professions parsing", - "name": "КиноПоиск", + "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "targetAbi": "10.7.0", "runtimes": "netframework,netcore", - "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/jellyfin-plugin-kinopoisk_10.7.0.1.zip", + "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.1.zip", "filename": "jellyfin-plugin-kinopoisk_10.7.0.1.zip", "timestamp": "2021-03-18 13:31:00", "version": "10.7.0.1" @@ -32,10 +41,10 @@ { "checksum": "ec7cfeff6a88f2427057d1bb6fb150b6", "changelog": "Jellyfin v10.7 compat", - "name": "КиноПоиск", + "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "targetAbi": "10.7.0", "runtimes": "netframework,netcore", - "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/jellyfin-plugin-kinopoisk_10.7.0.0.zip", + "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.0.zip", "filename": "jellyfin-plugin-kinopoisk_10.7.0.0.zip", "timestamp": "2021-03-16 11:35:00", "version": "10.7.0.0" @@ -43,10 +52,10 @@ { "checksum": "50674e215597995b96da17b49ee7ad62", "changelog": "fix NRE in person provider", - "name": "КиноПоиск", + "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "targetAbi": "10.6.0", "runtimes": "netframework,netcore", - "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/jellyfin-plugin-kinopoisk_10.6.0.2.zip", + "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/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" @@ -54,10 +63,10 @@ { "checksum": "a877cde0df7d70266fdb9362b72884c1", "changelog": "new release", - "name": "КиноПоиск", + "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "targetAbi": "10.6.0", "runtimes": "netframework,netcore", - "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/jellyfin-plugin-kinopoisk_10.6.0.1.zip", + "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.1.zip", "filename": "jellyfin-plugin-kinopoisk_10.6.0.1.zip", "timestamp": "2020-07-07 19:00:00", "version": "10.6.0.1" @@ -65,14 +74,14 @@ { "checksum": "8f43d3943f5f60293c6fb0ccbe560096", "changelog": "new release", - "name": "КиноПоиск", + "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "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", + "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/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" } ] } -] +] \ No newline at end of file diff --git a/publish.sh b/publish.sh new file mode 100644 index 0000000..8a5ab8a --- /dev/null +++ b/publish.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +jprm repo add -u https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/ ./dist ./artifacts/*.zip +rm ./artifacts/* diff --git a/src/Jellyfin.Plugin.Kinopoisk/Configuration/PluginConfiguration.cs b/src/Jellyfin.Plugin.Kinopoisk/Configuration/PluginConfiguration.cs index c9fde7c..c46cf36 100644 --- a/src/Jellyfin.Plugin.Kinopoisk/Configuration/PluginConfiguration.cs +++ b/src/Jellyfin.Plugin.Kinopoisk/Configuration/PluginConfiguration.cs @@ -5,6 +5,6 @@ namespace Jellyfin.Plugin.Kinopoisk.Configuration public class PluginConfiguration : BasePluginConfiguration { // https://kinopoiskapiunofficial.tech/ - public string ApiToken { get; set; } = string.Empty; + public string ApiToken { get; set; } = "85d30ae5-d875-4c5f-900d-8e37bb20625e"; } } diff --git a/src/Jellyfin.Plugin.Kinopoisk/build.yaml b/src/Jellyfin.Plugin.Kinopoisk/build.yaml new file mode 100644 index 0000000..e7cf8f7 --- /dev/null +++ b/src/Jellyfin.Plugin.Kinopoisk/build.yaml @@ -0,0 +1,18 @@ +--- +name: "КиноПоиск" +guid: "0c136f8a-ff77-4f2b-ade5-13462cae6216" +imageUrl: "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png" +version: "10.7.0.3" +targetAbi: "10.7.0" +framework: "net5.0" +owner: "linfor" +overview: "Загружает рейтинги сайта КиноПоиск" +description: > + Загружает рейтинги сайта КиноПоиск +category: "Metadata" +artifacts: +- "Jellyfin.Plugin.Kinopoisk.dll" +- "Macross.Json.Extensions.dll" +changelog: > + Don't provide empty poster + Added kinopoisk hyperlink in people info