From 5e2a39e2d9fc1ecb0c4afc348f3703cea6ef461b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 28 May 2021 09:23:52 -0300 Subject: Feat: hoarder: yt-splitter --- share/hoarder/yt-splitter/info | 1 + share/hoarder/yt-splitter/unix/linux/install | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 share/hoarder/yt-splitter/info create mode 100755 share/hoarder/yt-splitter/unix/linux/install diff --git a/share/hoarder/yt-splitter/info b/share/hoarder/yt-splitter/info new file mode 100644 index 0000000..aa88f6e --- /dev/null +++ b/share/hoarder/yt-splitter/info @@ -0,0 +1 @@ +downloads and splits audio tracks from a YouTube video according to the chapters/tracks diff --git a/share/hoarder/yt-splitter/unix/linux/install b/share/hoarder/yt-splitter/unix/linux/install new file mode 100755 index 0000000..8671b03 --- /dev/null +++ b/share/hoarder/yt-splitter/unix/linux/install @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +# +# Install yt-splitter package manager. +# + +# Parameters +SHARE="$1" +LIB="$2" + +# Include basic functions +. $LIB/trashman/functions || exit 1 + +# Requirements +trashman_require wget ffmpeg + +# Dependency: youtube-dl +hoarder install youtube-dl + +# Additional parameters +VERSION="0.1.2" +URL="https://github.com/redsolver/yt-splitter/releases/download/v$VERSION/yt-splitter-linux" +DEST="$HOME/.local/bin/yt-splitter" + +# Remove any older version +rm -f $DEST + +# Download and install +wget "$URL" -O "$DEST" && chmod +x "$DEST" || exit 1 -- cgit v1.2.3