Skip to content

Commit

Permalink
Fix passing full url to record_youtube.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
prinsss committed Oct 28, 2018
1 parent 0651afd commit 3a51874
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion record_youtube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ fi

# Construct full URL if only channel id given
LIVE_URL=$1
[ "$1" == http* ] || LIVE_URL="https://www.youtube.com/channel/$1/live"
# Use double square brackets construct here to test substring
[[ "$1" == "http"* ]] || LIVE_URL="https://www.youtube.com/channel/$1/live"

# Record the best format available but not better that 720p by default
FORMAT="${2:-best[height<=720]}"
Expand Down

0 comments on commit 3a51874

Please sign in to comment.