From fcef6b66b4d70379a5e4e4374334bb8a2b3f702c Mon Sep 17 00:00:00 2001 From: olli <> Date: Tue, 8 Oct 2024 12:14:17 +0200 Subject: [PATCH] kodi addons and settings --- raspi.sh | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/raspi.sh b/raspi.sh index f6bddf6..e0c2875 100644 --- a/raspi.sh +++ b/raspi.sh @@ -154,3 +154,66 @@ cp /usr/share/applications/kodi.desktop /home/${user}/.config/autostart/kodi.des chmod 700 /home/${user} /home/${user}/.xsessionrc /home/${user}/.config /home/${user}/.config/autostart /home/${user}/.config/autostart/kodi.desktop chown ${user}: /home/${user} /home/${user}/.xsessionrc /home/${user}/.config /home/${user}/.config/autostart /home/${user}/.config/autostart/kodi.desktop + +# install (new) addons +cd /home/user/.kodi/addons + +# jellyfin from jellyfin repo +if ! [ -d repository.jellyfin.kodi ] +then + wget https://kodi.jellyfin.org/repository.jellyfin.kodi.zip + unzip repository.jellyfin.kodi.zip +fi +if ! [ -d plugin.video.jellyfin ] +then + wget https://kodi.jellyfin.org/py3/plugin.video.jellyfin/resources/plugin.video.jellyfin-1.0.4%2Bpy3.zip + unzip plugin.video.jellyfin-1.0.4+py3.zip +fi + +# mediathekview from mediathekview repo +if ! [ -d repository.mediathekview ] +then + wget https://kodirepo.mediathekview.de/repo-mv/repository.mediathekview/repository.mediathekview-1.0.0.zip + unzip repository.mediathekview-1.0.0.zip +fi +if ! [ -d plugin.video.mediathekview ] +then + wget https://kodirepo.mediathekview.de/repo-leia/plugin.video.mediathekview/plugin.video.mediathekview-1.1.2.zip + unzip plugin.video.mediathekview-1.1.2.zip +fi + +## officiall addons +# german lang +if ! [ -d resource.language.de_de ] +then + wget https://mirrors.kodi.tv/addons/omega/resource.language.de_de/resource.language.de_de-11.0.80.zip + unzip resource.language.de_de-11.0.80.zip +fi + +# invidious +if ! [ -d plugin.video.invidious ] +then + wget https://mirrors.kodi.tv/addons/omega/plugin.video.invidious/plugin.video.invidious-0.2.7+nexus.0.zip + unzip plugin.video.invidious-0.2.7+nexus.0.zip +fi + +if ! [ -d plugin.video.fosdem ] +then + wget https://mirrors.kodi.tv/addons/omega/plugin.video.fosdem/plugin.video.fosdem-0.0.8+matrix.1.zip + unzip plugin.video.fosdem-0.0.8+matrix.1.zip +fi + +# create (new) kodi presets +cd /home/${user} +[ -d debian.ansible.kodi ] && rm -r debian.ansible.kodi +git clone https://gitea.ds9.dedyn.io/olli/debian.ansible.kodi.git +chown -R ${user}: debian.ansible.kodi +rsync -av --ignore-existing debian.ansible.kodi/kodi-settings/ /home/${user}/.kodi/ + +# autostart kodi in desktop +mkdir -p /home/${user}/.config/autostart +cp /usr/share/applications/kodi.desktop /home/${user}/.config/autostart/kodi.desktop + +# rights kodi +chown -R ${user}: .kodi +