Fixed 'author' command inconsistencies

This commit is contained in:
Jenga Phoenix 2019-03-16 11:08:03 -05:00
parent c5b2cc7269
commit 1be0689fe0

View File

@ -739,7 +739,7 @@ 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")"
@ -747,8 +747,8 @@ function playlist_author_invocation {
case "$view" in
"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,7 +880,7 @@ 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")"
@ -888,8 +888,8 @@ function video_author_invocation {
case "$view" in
"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
}