diff --git a/TESTME.md b/TESTME.md new file mode 100644 index 0000000..7459590 --- /dev/null +++ b/TESTME.md @@ -0,0 +1,11 @@ + +Under debian install kodi 17 or above and python-libtorrent library + +apt install kodi +apt install python-libtorrent + +then create a zip from this content using : + +./createaddon.sh + +Then follow kodi https://kodi.wiki/view/Add-on_manager#How_to_install_from_a_ZIP_file from the created file. \ No newline at end of file diff --git a/createaddon.sh b/createaddon.sh new file mode 100755 index 0000000..df99740 --- /dev/null +++ b/createaddon.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +echo "Create a zip package to be able to install it in kodi as external source" + +package=plugin.video.peertube + +# very lazzy pattern extraction from addon.xml +version=$(grep "name=\"PeerTube\" version=" addon.xml | sed 's/^.*version="\([^"]*\).*$/\1/g') + +zip_package=$package-$version.zip + +if [[ -d $package ]] +then + echo "[ERROR] '$package' directory does already exists, please remove it or move it away" >&2 + exit 1 +fi + +if [[ -e $zip_package ]] +then + echo "[WARNING] '$zip_package' zip already exists, it will be updated. Please remove it or move it away or change version in addon.xml next time..." >&2 +fi + +mkdir $package + +cp -r addon.xml icon.png fanart.jpg peertube.py LICENSE.txt resources/ service.py $package +zip -r $zip_package $package + +echo +echo "[INFO] '$(pwd)/$zip_package' created. You can import it in kodi" diff --git a/fanart.jpg b/fanart.jpg new file mode 100644 index 0000000..4f6f807 Binary files /dev/null and b/fanart.jpg differ