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 esac
if echo "$url" | grep -qv "youtube"; then if echo "$url" | grep -qv "youtube"; then
url="https://www.youtube.com/playlist?list=${1}" url="https://www.youtube.com/playlist?list=${url}"
fi fi
html="$(gendl "$url")" html="$(gendl "$url")"
@ -747,8 +747,8 @@ function playlist_author_invocation {
case "$view" in case "$view" in
"url") playlist_author_url "$html" ;; "url") playlist_author_url "$html" ;;
"name") playlist_author_name "$html" ;; "name") playlist_author_name "$html" ;;
"both") echo "$(playlist_author_name "$html")" "both")
echo "$(playlist_author_url "$html")" echo "$(playlist_author_name "$html") | $(playlist_author_url "$html")"
;; ;;
esac esac
} }
@ -880,7 +880,7 @@ function video_author_invocation {
esac esac
if echo "$url" | grep -qv "youtube"; then if echo "$url" | grep -qv "youtube"; then
url="https://www.youtube.com/watch?v=${1}" url="https://www.youtube.com/watch?v=${url}"
fi fi
html="$(gendl "$url")" html="$(gendl "$url")"
@ -888,8 +888,8 @@ function video_author_invocation {
case "$view" in case "$view" in
"url") video_author_url "$html" ;; "url") video_author_url "$html" ;;
"name") video_author_name "$html" ;; "name") video_author_name "$html" ;;
"both") echo "$(video_author_name "$html")" "both")
echo "$(video_author_url "$html")" echo "$(video_author_name "$html") | $(video_author_url "$html")"
;; ;;
esac esac
} }