Compare commits

...
6 Commits
Author SHA1 Message Date
Sergey Krashevich 81511e6bd8 version 10.8.9.1 2023-02-08 19:10:12 +03:00
Sergey Krashevich 29db7e5909 version 10.8.9.1 2023-02-08 18:49:25 +03:00
Sergey Krashevich 7d2f72a314 version 10.8.9.1 2023-02-08 18:25:03 +03:00
Sergey Krashevich 37020283a9 version 10.8.9.1 2023-02-08 17:33:37 +03:00
Sergey Krashevich c1ff89d694 Update manifest.json 2023-02-08 17:22:44 +03:00
Sergey Krashevich fbf6995dc3 Update README.md 2023-02-08 17:01:55 +03:00
5 changed files with 187 additions and 178 deletions

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ Fetches metadata from https://www.kinopoisk.ru/. This site is popular in the Rus
## Установка ## Установка
Администрирование - Панель - Расширенное - Плагины - вкладка Репозитории - добавить адрес https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/manifest.json. Администрирование - Панель - Расширенное - Плагины - вкладка Репозитории - добавить адрес https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/manifest.json.
После этого на вкладке Каталог найти "КиноПоиск" (раздел Метаданные) и установить. После этого на вкладке Каталог найти "КиноПоиск" (раздел Метаданные) и установить.
Binary file not shown.
+155 -158
View File
@@ -8,164 +8,161 @@
"description": "Загружает рейтинг, описания, актёров, трейлеры и т.д. с сайта КиноПоиск. Может потребоваться зарегистрировать свой ApiToken, см. информацию в параметрах плагина. Для точного распознавания рекомендуется указывать id фильма с сайта КиноПоиск в имени файла в формате kp-12345 или kp12345. Подробнее см. https://github.com/LinFor/jellyfin-plugin-kinopoisk/blob/master/README.md\n", "description": "Загружает рейтинг, описания, актёров, трейлеры и т.д. с сайта КиноПоиск. Может потребоваться зарегистрировать свой ApiToken, см. информацию в параметрах плагина. Для точного распознавания рекомендуется указывать id фильма с сайта КиноПоиск в имени файла в формате kp-12345 или kp12345. Подробнее см. https://github.com/LinFor/jellyfin-plugin-kinopoisk/blob/master/README.md\n",
"imageUrl": "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png", "imageUrl": "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png",
"versions": [ "versions": [
[ {
{ "version": "10.8.9.1",
"version": "10.8.9.0", "checksum": "d15934ff981be4d7df861cd35a862971",
"checksum": "20ee4624c336696c1ff130044a20cdd4", "changelog": "new release",
"changelog": "new release", "name": "КиноПоиск",
"name": "КиноПоиск", "targetAbi": "10.8.8.0",
"targetAbi": "10.8.8.0", "sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.1.zip",
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.0.zip", "timestamp": "2023-02-08T16:10:12Z"
"timestamp": "2023-02-08T13:52:25Z" },
}, {
{ "version": "10.8.9.1",
"version": "10.7.5.7", "checksum": "3790c3375057977320a77fe004f7c17f",
"checksum": "df1c6ea557e12c3d7d29ff96c1257b66", "changelog": "new release",
"changelog": "new release", "targetAbi": "10.8.0",
"name": "КиноПоиск", "sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.1.zip",
"targetAbi": "10.8.8.0", "timestamp": "2023-02-08T15:37:42Z"
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.7.zip", },
"timestamp": "2023-02-08T13:12:54Z" {
}, "version": "10.7.5.6",
{ "changelog": "Update to .NET 7\n",
"version": "10.7.5.6", "targetAbi": "10.7.0",
"changelog": "Update to .NET 7\n", "sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.6.zip",
"targetAbi": "10.7.0", "checksum": "60310678f450ca7f0da3811642ae2bc4",
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.6.zip", "timestamp": "2023-01-22T03:34:00Z"
"checksum": "60310678f450ca7f0da3811642ae2bc4", },
"timestamp": "2023-01-22T03:34:00Z" {
}, "version": "10.7.5.4",
{ "changelog": "Search fixed in case of null premiere date\n",
"version": "10.7.5.4", "targetAbi": "10.7.0",
"changelog": "Search fixed in case of null premiere date\n", "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.4.zip",
"targetAbi": "10.7.0", "checksum": "2f48bd383e298da975e93a7f84fe3bc1",
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.4.zip", "timestamp": "2021-10-17T15:57:00Z"
"checksum": "2f48bd383e298da975e93a7f84fe3bc1", },
"timestamp": "2021-10-17T15:57:00Z" {
}, "version": "10.7.5.3",
{ "changelog": "Results parsing fixes due to upstream service changes (api 2.2)\n",
"version": "10.7.5.3", "targetAbi": "10.7.0",
"changelog": "Results parsing fixes due to upstream service changes (api 2.2)\n", "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.3.zip",
"targetAbi": "10.7.0", "checksum": "43930ff3db6b6938dcbc23297c53c746",
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.3.zip", "timestamp": "2021-09-27T12:09:43Z"
"checksum": "43930ff3db6b6938dcbc23297c53c746", },
"timestamp": "2021-09-27T12:09:43Z" {
}, "version": "10.7.5.2",
{ "changelog": "Results parsing fixes due to upstream service changes\n",
"version": "10.7.5.2", "targetAbi": "10.7.0",
"changelog": "Results parsing fixes due to upstream service changes\n", "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.2.zip",
"targetAbi": "10.7.0", "checksum": "e35c1942fb8ceda1d351d7307174fab2",
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.2.zip", "timestamp": "2021-08-10T16:00:08Z"
"checksum": "e35c1942fb8ceda1d351d7307174fab2", },
"timestamp": "2021-08-10T16:00:08Z" {
}, "version": "10.7.5.1",
{ "changelog": "Results parsing fixes\n",
"version": "10.7.5.1", "targetAbi": "10.7.0",
"changelog": "Results parsing fixes\n", "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.1.zip",
"targetAbi": "10.7.0", "checksum": "c41d06954e6c00d8b51f11ac11180cb3",
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.1.zip", "timestamp": "2021-06-22T09:27:10Z"
"checksum": "c41d06954e6c00d8b51f11ac11180cb3", },
"timestamp": "2021-06-22T09:27:10Z" {
}, "version": "10.7.5.0",
{ "changelog": "Short: Huge improvement in auto-identifying of movies. Rus: Значительно улучшено авто-привязка фильмов при добавлении в медиатеку. Пытаюсь найти идентификатор кинопоиска по паттерну kp-12345 или kp12345 в имени файла/папки. Пытаюсь найти единственное совпадение на кинопоиске по имени + году. Пытаюсь перебрать все совпадения по имени + сравнение IMDB ID.\n",
"version": "10.7.5.0", "targetAbi": "10.7.0",
"changelog": "Short: Huge improvement in auto-identifying of movies. Rus: Значительно улучшено авто-привязка фильмов при добавлении в медиатеку. Пытаюсь найти идентификатор кинопоиска по паттерну kp-12345 или kp12345 в имени файла/папки. Пытаюсь найти единственное совпадение на кинопоиске по имени + году. Пытаюсь перебрать все совпадения по имени + сравнение IMDB ID.\n", "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.0.zip",
"targetAbi": "10.7.0", "checksum": "ea7eabac0fc4d1891529616a16a02897",
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.0.zip", "timestamp": "2021-05-23T15:30:18Z"
"checksum": "ea7eabac0fc4d1891529616a16a02897", },
"timestamp": "2021-05-23T15:30:18Z" {
}, "version": "10.7.0.5",
{ "changelog": "Added trailers filtering: jellyfin-web can only play youtube trailers, not kinopoisk-hosted\n",
"version": "10.7.0.5", "targetAbi": "10.7.0",
"changelog": "Added trailers filtering: jellyfin-web can only play youtube trailers, not kinopoisk-hosted\n", "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.5.zip",
"targetAbi": "10.7.0", "checksum": "6bdb97ee1e862b0b5657f7b510040148",
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.5.zip", "timestamp": "2021-05-22T23:01:09Z"
"checksum": "6bdb97ee1e862b0b5657f7b510040148", },
"timestamp": "2021-05-22T23:01:09Z" {
}, "version": "10.7.0.4",
{ "changelog": "Added person info, person image, trailers fetching\n",
"version": "10.7.0.4", "targetAbi": "10.7.0",
"changelog": "Added person info, person image, trailers fetching\n", "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.4.zip",
"targetAbi": "10.7.0", "checksum": "28d4972fe0f5e193a8b3051ce5240ffe",
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.4.zip", "timestamp": "2021-05-22T22:24:49Z"
"checksum": "28d4972fe0f5e193a8b3051ce5240ffe", },
"timestamp": "2021-05-22T22:24:49Z" {
}, "version": "10.7.0.3",
{ "changelog": "Don't provide empty poster Added kinopoisk hyperlink in people info\n",
"version": "10.7.0.3", "targetAbi": "10.7.0",
"changelog": "Don't provide empty poster Added kinopoisk hyperlink in people info\n", "sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.3.zip",
"targetAbi": "10.7.0", "checksum": "d58cdb87e4e93b7ab1b22c14248841e2",
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.3.zip", "timestamp": "2021-05-21T16:00:03Z"
"checksum": "d58cdb87e4e93b7ab1b22c14248841e2", },
"timestamp": "2021-05-21T16:00:03Z" {
}, "checksum": "8d77d5f4de0bdf0abbce76cf8e5a251d",
{ "changelog": "Fixed rating parsing",
"checksum": "8d77d5f4de0bdf0abbce76cf8e5a251d", "name": "КиноПоиск",
"changelog": "Fixed rating parsing", "targetAbi": "10.7.0",
"name": "КиноПоиск", "runtimes": "netframework,netcore",
"targetAbi": "10.7.0", "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.2.zip",
"runtimes": "netframework,netcore", "filename": "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", "timestamp": "2021-04-06 18:12:00",
"filename": "jellyfin-plugin-kinopoisk_10.7.0.2.zip", "version": "10.7.0.2"
"timestamp": "2021-04-06 18:12:00", },
"version": "10.7.0.2" {
}, "checksum": "9051c982f7846af34249ed9969012c17",
{ "changelog": "Fixed some actor professions parsing",
"checksum": "9051c982f7846af34249ed9969012c17", "name": "КиноПоиск",
"changelog": "Fixed some actor professions parsing", "targetAbi": "10.7.0",
"name": "КиноПоиск", "runtimes": "netframework,netcore",
"targetAbi": "10.7.0", "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.1.zip",
"runtimes": "netframework,netcore", "filename": "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", "timestamp": "2021-03-18 13:31:00",
"filename": "jellyfin-plugin-kinopoisk_10.7.0.1.zip", "version": "10.7.0.1"
"timestamp": "2021-03-18 13:31:00", },
"version": "10.7.0.1" {
}, "checksum": "ec7cfeff6a88f2427057d1bb6fb150b6",
{ "changelog": "Jellyfin v10.7 compat",
"checksum": "ec7cfeff6a88f2427057d1bb6fb150b6", "name": "КиноПоиск",
"changelog": "Jellyfin v10.7 compat", "targetAbi": "10.7.0",
"name": "КиноПоиск", "runtimes": "netframework,netcore",
"targetAbi": "10.7.0", "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.0.zip",
"runtimes": "netframework,netcore", "filename": "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", "timestamp": "2021-03-16 11:35:00",
"filename": "jellyfin-plugin-kinopoisk_10.7.0.0.zip", "version": "10.7.0.0"
"timestamp": "2021-03-16 11:35:00", },
"version": "10.7.0.0" {
}, "checksum": "50674e215597995b96da17b49ee7ad62",
{ "changelog": "fix NRE in person provider",
"checksum": "50674e215597995b96da17b49ee7ad62", "name": "КиноПоиск",
"changelog": "fix NRE in person provider", "targetAbi": "10.6.0",
"name": "КиноПоиск", "runtimes": "netframework,netcore",
"targetAbi": "10.6.0", "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.2.zip",
"runtimes": "netframework,netcore", "filename": "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", "timestamp": "2020-07-09 13:00:00",
"filename": "jellyfin-plugin-kinopoisk_10.6.0.2.zip", "version": "10.6.0.2"
"timestamp": "2020-07-09 13:00:00", },
"version": "10.6.0.2" {
}, "checksum": "a877cde0df7d70266fdb9362b72884c1",
{ "changelog": "new release",
"checksum": "a877cde0df7d70266fdb9362b72884c1", "name": "КиноПоиск",
"changelog": "new release", "targetAbi": "10.6.0",
"name": "КиноПоиск", "runtimes": "netframework,netcore",
"targetAbi": "10.6.0", "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.1.zip",
"runtimes": "netframework,netcore", "filename": "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", "timestamp": "2020-07-07 19:00:00",
"filename": "jellyfin-plugin-kinopoisk_10.6.0.1.zip", "version": "10.6.0.1"
"timestamp": "2020-07-07 19:00:00", },
"version": "10.6.0.1" {
}, "checksum": "8f43d3943f5f60293c6fb0ccbe560096",
{ "changelog": "new release",
"checksum": "8f43d3943f5f60293c6fb0ccbe560096", "name": "КиноПоиск",
"changelog": "new release", "targetAbi": "10.6.0",
"name": "КиноПоиск", "runtimes": "netframework,netcore",
"targetAbi": "10.6.0", "sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.0.zip",
"runtimes": "netframework,netcore", "filename": "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", "timestamp": "2020-07-07 10:00:00",
"filename": "jellyfin-plugin-kinopoisk_10.6.0.0.zip", "version": "10.6.0.0"
"timestamp": "2020-07-07 10:00:00", }
"version": "10.6.0.0"
}
]
] ]
} }
] ]
+29 -17
View File
@@ -1,11 +1,22 @@
#!/bin/bash #!/bin/bash
VERSION="10.8.9.0" VERSION="10.8.9.1"
CHANGELOG="Update version to correspnding JellyFin. Bump deps." CHANGELOG="Fix bugs. Update version to correspnding JellyFin. Bump deps."
docker run -it --rm -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 dotnet restore ./src
docker run -it --rm -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 dotnet build --configuration Release ./src brew link --overwrite dotnet@6
export PATH="/usr/local/opt/dotnet@6/bin:$PATH"
find . -name project.assets.json -delete
gsed -i'' "s/version: .*/version: \"$VERSION\"/" src/Jellyfin.Plugin.Kinopoisk/build.yaml
BUILDYAML=`head -$(grep -n "changelog: >" src/Jellyfin.Plugin.Kinopoisk/build.yaml | head -1 | cut -d: -f1) src/Jellyfin.Plugin.Kinopoisk/build.yaml`
echo -e "$BUILDYAML\n $CHANGELOG" > src/Jellyfin.Plugin.Kinopoisk/build.yaml
docker run -it --rm --network host -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 dotnet restore ./src
docker run -it --rm --network host -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 dotnet build --configuration Release ./src
RELEASEDIR="$(pwd)/dist/kinopoisk/kinopoisk_$VERSION" RELEASEDIR="$(pwd)/dist/kinopoisk/kinopoisk_$VERSION"
rm -rf "$RELEASEDIR" "$RELEASEDIR.zip"
mkdir -p "$RELEASEDIR" mkdir -p "$RELEASEDIR"
cp "$(pwd)/src/Jellyfin.Plugin.Kinopoisk/bin/Release/net6.0/Jellyfin.Plugin.Kinopoisk.dll" "$RELEASEDIR/" cp "$(pwd)/src/Jellyfin.Plugin.Kinopoisk/bin/Release/net6.0/Jellyfin.Plugin.Kinopoisk.dll" "$RELEASEDIR/"
cp "$(pwd)/src/KinopoiskUnofficialInfo.ApiClient/bin/Release/net6.0/KinopoiskUnofficialInfo.ApiClient.dll" "$RELEASEDIR/" cp "$(pwd)/src/KinopoiskUnofficialInfo.ApiClient/bin/Release/net6.0/KinopoiskUnofficialInfo.ApiClient.dll" "$RELEASEDIR/"
@@ -19,24 +30,25 @@ cat << EOF > "dist/kinopoisk/kinopoisk_$VERSION/meta.json"
"name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a",
"overview": "\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0444\u0438\u043b\u044c\u043c\u0430\u0445 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0430\u0445 \u0441 \u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a\u0430", "overview": "\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0444\u0438\u043b\u044c\u043c\u0430\u0445 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0430\u0445 \u0441 \u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a\u0430",
"owner": "svk", "owner": "svk",
"targetAbi": "10.8.8.0", "targetAbi": "10.8.0",
"timestamp": "$(date -u "+%Y-%m-%dT%H:%M:%SZ")", "timestamp": "$(date -u "+%Y-%m-%dT%H:%M:%SZ")",
"version": "$VERSION" "version": "$VERSION"
} }
EOF EOF
zip -r "dist/kinopoisk/kinopoisk_$VERSION.zip" "dist/kinopoisk/kinopoisk_$VERSION" echo $( cd $RELEASEDIR; zip -j "../kinopoisk_$VERSION.zip" *)
rm -rf "$RELEASEDIR"
HASH=$(md5sum "$RELEASEDIR.zip" | cut -d' ' -f1)
HASH=$(md5sum "dist/kinopoisk/kinopoisk_$VERSION.zip" | cut -d' ' -f1) jq --arg HASH "$HASH" --arg URL "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_$VERSION.zip" \
--arg TIMESTAMP "$(date -u "+%Y-%m-%dT%H:%M:%SZ")" \
jq --arg HASH "$HASH" --arg URL "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_$VERSION.zip" --arg TIMESTAMP "$(date -u "+%Y-%m-%dT%H:%M:%SZ")" --arg VERSION "$VERSION" '.[0].versions = [[{"version": $VERSION, "checksum": $HASH, "changelog": "new release", "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "targetAbi": "10.8.8.0", "sourceUrl": $URL, "timestamp": $TIMESTAMP}] + (.[0].versions[0:])]' "$(pwd)/dist/manifest.json" > "$(pwd)/dist/manifest.json.tmp" && mv "$(pwd)/dist/manifest.json.tmp" "$(pwd)/dist/manifest.json" --arg VERSION "$VERSION" \
'.[0].versions |= [{"version": $VERSION, "checksum": $HASH, "changelog": "new release", "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "targetAbi": "10.8.8.0", "sourceUrl": $URL, "timestamp": $TIMESTAMP}] + .' \
gsed -i'' "s/version: .*/version: \"$VERSION\"/" src/Jellyfin.Plugin.Kinopoisk/build.yaml "$(pwd)/dist/manifest.json" > "$(pwd)/dist/manifest.json.tmp" && \
BUILDYAML=`head -$(grep -n "changelog: >" src/Jellyfin.Plugin.Kinopoisk/build.yaml | head -1 | cut -d: -f1) src/Jellyfin.Plugin.Kinopoisk/build.yaml` mv "$(pwd)/dist/manifest.json.tmp" "$(pwd)/dist/manifest.json"
echo -e "$BUILDYAML\n\t$CHANGELOG" > src/Jellyfin.Plugin.Kinopoisk/build.yaml
#jprm repo add -u https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/ ./dist ./artifacts/*.zip #jprm repo add -u https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/ ./dist ./artifacts/*.zip
rm ./artifacts/* rm -rf ./artifacts/*
git add "dist/kinopoisk/kinopoisk_$VERSION.zip" "dist/manifest.json" "publish.sh" && \ git add "$RELEASEDIR.zip" "dist/manifest.json" "publish.sh" "src/Jellyfin.Plugin.Kinopoisk/build.yaml" && \
git commit -m "version $VERSION" && \ git commit -m "version $VERSION" && \
git tag "v$VERSION" && \ git tag -f "v$VERSION" #&& \
git push --tags git push --force && git push --tags --force
+2 -2
View File
@@ -2,7 +2,7 @@
name: "КиноПоиск" name: "КиноПоиск"
guid: "0c136f8a-ff77-4f2b-ade5-13462cae6216" guid: "0c136f8a-ff77-4f2b-ade5-13462cae6216"
imageUrl: "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png" imageUrl: "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png"
version: "10.7.5.6" version: "10.8.9.1"
targetAbi: "10.8.8.0" targetAbi: "10.8.8.0"
framework: "net6.0" framework: "net6.0"
owner: "svk" owner: "svk"
@@ -17,4 +17,4 @@ artifacts:
- "Jellyfin.Plugin.Kinopoisk.dll" - "Jellyfin.Plugin.Kinopoisk.dll"
- "KinopoiskUnofficialInfo.ApiClient.dll" - "KinopoiskUnofficialInfo.ApiClient.dll"
changelog: > changelog: >
Search fixed in case of null premiere date Fix bugs. Update version to correspnding JellyFin. Bump deps.