fix syntax
This commit is contained in:
parent
4a734a3438
commit
b477832e1a
|
@ -143,8 +143,8 @@ peertube_menu_video()
|
||||||
else
|
else
|
||||||
hls='streamingPlaylists.0.'
|
hls='streamingPlaylists.0.'
|
||||||
fi
|
fi
|
||||||
video_url=$(echo "$get_video" | jj "$hls"files.#[resolution.id="$pref_video_quality"].fileUrl)
|
video_url=$(echo "$get_video" | jj "$hls"files.\#[resolution.id="$pref_video_quality"].fileUrl)
|
||||||
torrent_url=$(echo "$get_video" | jj "$hls"files.#[resolution.id="$pref_video_quality"].torrentUrl)
|
torrent_url=$(echo "$get_video" | jj "$hls"files.\#[resolution.id="$pref_video_quality"].torrentUrl)
|
||||||
echo "Channel: $channel"
|
echo "Channel: $channel"
|
||||||
fulldescr=
|
fulldescr=
|
||||||
if [ -n "$desc" ]; then
|
if [ -n "$desc" ]; then
|
||||||
|
@ -160,9 +160,9 @@ peertube_menu_video()
|
||||||
if [ -z "$video_url" ]; then
|
if [ -z "$video_url" ]; then
|
||||||
echo "Resolution $pref_video_quality"'p not avalaible'
|
echo "Resolution $pref_video_quality"'p not avalaible'
|
||||||
echo 'Please choice:'
|
echo 'Please choice:'
|
||||||
resolution=$(echo "$get_video" | jj -l "$hls"files.#.resolution.label | fzy)
|
resolution=$(echo "$get_video" | jj -l "$hls"files.\#.resolution.label | fzy)
|
||||||
video_url=$(echo "$get_video" | jj "$hls"files.#[resolution.label="$resolution"].fileUrl)
|
video_url=$(echo "$get_video" | jj "$hls"files.\#[resolution.label="$resolution"].fileUrl)
|
||||||
torrent_url=$(echo "$get_video" | jj "$hls"files.#[resolution.label="$resolution"].torrentUrl)
|
torrent_url=$(echo "$get_video" | jj "$hls"files.\#[resolution.label="$resolution"].torrentUrl)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$torrent_enabled" = 'true' ]; then
|
if [ "$torrent_enabled" = 'true' ]; then
|
||||||
|
@ -179,8 +179,8 @@ peertube_menu_video()
|
||||||
"Share")
|
"Share")
|
||||||
echo "Link: https://$instance/w/$1"
|
echo "Link: https://$instance/w/$1"
|
||||||
echo "Direct links:"
|
echo "Direct links:"
|
||||||
echo "$(echo "$get_video" | jj -l "$hls"files.#.resolution.label)"
|
echo "$(echo "$get_video" | jj -l "$hls"files.\#.resolution.label)"
|
||||||
echo "$(echo "$get_video" | jj -l "$hls"files.#.fileUrl)" ;;
|
echo "$(echo "$get_video" | jj -l "$hls"files.\#.fileUrl)" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue