From 6ecd68f862fc90b26bd18d4b6462bbdca16a9075 Mon Sep 17 00:00:00 2001 From: Ben Martin Date: Tue, 18 Jun 2024 19:48:00 +0100 Subject: [PATCH] Try installing yt-dlp from linuxserver init script --- modules/media-centre/10-install-yt-dlp.sh | 3 +++ modules/media-centre/jobspec.json | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 modules/media-centre/10-install-yt-dlp.sh diff --git a/modules/media-centre/10-install-yt-dlp.sh b/modules/media-centre/10-install-yt-dlp.sh new file mode 100644 index 0000000..569c852 --- /dev/null +++ b/modules/media-centre/10-install-yt-dlp.sh @@ -0,0 +1,3 @@ +#!/bin/bash +apt-get update && apt-get install -y python3-pip +python3 -m pip install -U yt-dlp \ No newline at end of file diff --git a/modules/media-centre/jobspec.json b/modules/media-centre/jobspec.json index fb52009..54a644c 100644 --- a/modules/media-centre/jobspec.json +++ b/modules/media-centre/jobspec.json @@ -38,10 +38,10 @@ } ] }, - "Artifacts": [ + "Templates": [ { - "GetterSource": "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp", - "RelativeDest": "usr/local/bin/yt-dlp" + "SourcePath": "./10-install-yt-dlp.sh", + "DestPath": "/custom-cont-init.d/10-install-yt-dlp.sh" } ], "Env": {