Browse code

Fixed 'author' command inconsistencies

Jenga Phoenix authored on 2019-03-16 16:08:03
Showing 1 changed files
... ...
@@ -739,16 +739,16 @@ function playlist_author_invocation {
739 739
 	esac
740 740
 
741 741
 	if echo "$url" | grep -qv "youtube"; then
742
-		url="https://www.youtube.com/playlist?list=${1}"
742
+		url="https://www.youtube.com/playlist?list=${url}"
743 743
 	fi
744 744
 
745 745
 	html="$(gendl "$url")"
746 746
 
747 747
 	case "$view" in
748
-		"url")	playlist_author_url "$html" ;;
748
+		"url") playlist_author_url "$html" ;;
749 749
 		"name") playlist_author_name "$html" ;;
750
-		"both") echo "$(playlist_author_name "$html")"
751
-			echo "$(playlist_author_url "$html")"
750
+		"both")
751
+			echo "$(playlist_author_name "$html") | $(playlist_author_url "$html")"
752 752
 			;;
753 753
 	esac	
754 754
 }
... ...
@@ -880,16 +880,16 @@ function video_author_invocation {
880 880
 	esac
881 881
 
882 882
 	if echo "$url" | grep -qv "youtube"; then
883
-		url="https://www.youtube.com/watch?v=${1}"
883
+		url="https://www.youtube.com/watch?v=${url}"
884 884
 	fi
885 885
 
886 886
 	html="$(gendl "$url")"
887 887
 
888 888
 	case "$view" in
889
-		"url")	video_author_url "$html" ;;
889
+		"url") video_author_url "$html" ;;
890 890
 		"name") video_author_name "$html" ;;
891
-		"both") echo "$(video_author_name "$html")"
892
-			echo "$(video_author_url "$html")"
891
+		"both")
892
+			echo "$(video_author_name "$html") | $(video_author_url "$html")"
893 893
 			;;
894 894
 	esac	
895 895
 }