Skip to content

Commit

Permalink
setup-util-ytd: make everything optional and remove youtubedr
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Nov 3, 2023
1 parent 18e2a7b commit 7daaa9e
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions commands/setup-util-ytd
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,6 @@
function setup_util_wget() (
source "$DOROTHY/sources/bash.bash"

# ---------------------------------
# https://github.com/kkdai/youtube

local options=(
--cli='youtubedr'
"$@"
GO='github.com/kkdai/youtube/v2'
# GO='github.com/kkdai/youtube/v2/cmd/youtubedr'
)
setup-util "${options[@]}"

# ---------------------------------
# https://github.com/iawia002/lux

local options=(
--cli='lux'
"$@"
GO='github.com/iawia002/lux'
)
setup-util "${options[@]}"

# ---------------------------------
# https://github.com/yt-dlp/yt-dlp
# https://github.com/yt-dlp/yt-dlp/wiki/Installation
Expand All @@ -51,6 +30,7 @@ function setup_util_wget() (

# only use pip
options=(
--optional
--cli='yt-dlp'
--name='yt-dlp'
"$@"
Expand All @@ -73,12 +53,37 @@ function setup_util_wget() (

# only use pip
options=(
--optional
--cli='youtube-dl'
--name='youtube-dl'
"$@"
PIP='youtube-dl'
)
setup-util "${options[@]}"

# ---------------------------------
# https://github.com/kkdai/youtube

# failing with: package github.com/kkdai/youtube/v2 is not a main package
# local options=(
# --optional
# --cli='youtubedr'
# "$@"
# GO='github.com/kkdai/youtube/v2'
# # GO='github.com/kkdai/youtube/v2/cmd/youtubedr'
# )
# setup-util "${options[@]}"

# ---------------------------------
# https://github.com/iawia002/lux

local options=(
--optional
--cli='lux'
"$@"
GO='github.com/iawia002/lux'
)
setup-util "${options[@]}"
)

# fire if invoked standalone
Expand Down

0 comments on commit 7daaa9e

Please sign in to comment.