diff --git a/webroot/channel.shs b/webroot/channel.shs index 3904017..cce4e3b 100644 --- a/webroot/channel.shs +++ b/webroot/channel.shs @@ -24,5 +24,5 @@ video_id=($(jq -r '.entries[].id' <<< $data)) echo "

$title

Subscribe!
" for (( i=0; i<${#video_id[@]}; i++ )); do - echo "
${video_title[$i]}

" + echo "
${video_title[$i]}

" done diff --git a/webroot/fav.shs b/webroot/fav.shs index 312f923..e5550f5 100644 --- a/webroot/fav.shs +++ b/webroot/fav.shs @@ -18,5 +18,5 @@ for i in $(tac storage/faves | grep -P "^$(session_get_username ${cookies[sh_ses if [[ ${array[1]} == '' ]]; then break fi - echo "

${array[@]:2:999}

"; + echo "

${array[@]:2:999}

"; done diff --git a/webroot/feed.shs b/webroot/feed.shs index 797c05e..92b8225 100644 --- a/webroot/feed.shs +++ b/webroot/feed.shs @@ -18,7 +18,7 @@ if session_verify "${cookies[sh_session]}"; then queue=$(for (( i=0; i<${#video_id[@]}; i++ )); do echo "$i ${video_date[i]}"; done | sort -k2r | awk '{print $1}') while read i; do - echo "
${video_title[$i]}
$(date -d "@${video_date[$i]}" "+%H:%M, %d %h %Y")
" + echo "
${video_title[$i]}
$(date -d "@${video_date[$i]}" "+%H:%M, %d %h %Y")
" done <<< "$queue" else echo "gtfo" diff --git a/webroot/index.shs b/webroot/index.shs index 5102d1e..27dc76c 100755 --- a/webroot/index.shs +++ b/webroot/index.shs @@ -18,7 +18,7 @@ for i in $(tac storage/faves); do if [[ ${array[1]} == '' ]]; then break fi - echo "

${array[@]:2:999}

Favourited by ${array[0]}
"; + echo "

${array[@]:2:999}

Favourited by ${array[0]}
"; done echo "" diff --git a/webroot/playlist.shs b/webroot/playlist.shs index 11acc62..d948872 100644 --- a/webroot/playlist.shs +++ b/webroot/playlist.shs @@ -15,5 +15,5 @@ video_title=($(jq -r '.title' <<< $data)) video_id=($(jq -r '.id' <<< $data)) for (( i=0; i<${#video_id[@]}; i++ )); do - echo "
${video_title[$i]}

" + echo "
${video_title[$i]}

" done diff --git a/webroot/search.shs b/webroot/search.shs index 0111aae..37d9f5b 100755 --- a/webroot/search.shs +++ b/webroot/search.shs @@ -32,7 +32,7 @@ if [[ "${get_data[q]}" ]]; then unset IFS for (( i=0; i<${#id[@]}; i++ )); do - echo "
${title[$i]}
| ${runtime[$i]} seconds | ${views[$i]} views
Uploaded by ${channel[$i]}
" + echo "
${title[$i]}
| ${runtime[$i]} seconds | ${views[$i]} views
Uploaded by ${channel[$i]}
" done else echo "search for something will 'ya?" diff --git a/webroot/watch.shs b/webroot/watch.shs index c8b84a4..533502b 100755 --- a/webroot/watch.shs +++ b/webroot/watch.shs @@ -42,7 +42,7 @@ if [[ "${get_data[v]}" ]]; then echo "

$title

- Uploaded by $uploader on $(date -d "$(echo $video | jq -r '.upload_date' | sed -E 's/..../&-/;s/....-../&-/')" "+%d %B %Y") + Uploaded by $uploader on $(date -d "$(echo $video | jq -r '.upload_date' | sed -E 's/..../&-/;s/....-../&-/')" "+%d %B %Y")
$(echo $video | jq -r '.view_count') views
@@ -123,14 +123,14 @@ if [[ "${get_data[v]}" ]]; then var video = document.getElementById('player'); // video.play(); video.addEventListener('ended',function(){ - window.location = 'watch.shs?v=$next&playlist=$(html_encode ${get_data[playlist]})'; + window.location = 'watch?v=$next&playlist=$(html_encode ${get_data[playlist]})'; }); }); " echo "

Playlist

" for (( i=0; i<${#video_id[@]}; i++ )); do - echo "
${video_title[$i]}

" + echo "
${video_title[$i]}

" done fi