From 1be0689fe0a87b4ccfb22b9a32cd001b10088c11 Mon Sep 17 00:00:00 2001 From: Jenga Phoenix Date: Sat, 16 Mar 2019 11:08:03 -0500 Subject: [PATCH] Fixed 'author' command inconsistencies --- ytlib.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ytlib.sh b/ytlib.sh index 85109cd..332c93c 100644 --- a/ytlib.sh +++ b/ytlib.sh @@ -739,16 +739,16 @@ function playlist_author_invocation { esac if echo "$url" | grep -qv "youtube"; then - url="https://www.youtube.com/playlist?list=${1}" + url="https://www.youtube.com/playlist?list=${url}" fi html="$(gendl "$url")" case "$view" in - "url") playlist_author_url "$html" ;; + "url") playlist_author_url "$html" ;; "name") playlist_author_name "$html" ;; - "both") echo "$(playlist_author_name "$html")" - echo "$(playlist_author_url "$html")" + "both") + echo "$(playlist_author_name "$html") | $(playlist_author_url "$html")" ;; esac } @@ -880,16 +880,16 @@ function video_author_invocation { esac if echo "$url" | grep -qv "youtube"; then - url="https://www.youtube.com/watch?v=${1}" + url="https://www.youtube.com/watch?v=${url}" fi html="$(gendl "$url")" case "$view" in - "url") video_author_url "$html" ;; + "url") video_author_url "$html" ;; "name") video_author_name "$html" ;; - "both") echo "$(video_author_name "$html")" - echo "$(video_author_url "$html")" + "both") + echo "$(video_author_name "$html") | $(video_author_url "$html")" ;; esac }