mirror of
http://gitea.phreedom.club/localhost_frssoft/peertube-cli
synced 2025-03-21 09:52:02 +00:00
Compare commits
2 commits
d9466160eb
...
4024347362
Author | SHA1 | Date | |
---|---|---|---|
4024347362 | |||
2ec4a92f86 |
2 changed files with 1031 additions and 8 deletions
1034
config.json
1034
config.json
File diff suppressed because it is too large
Load diff
|
@ -71,7 +71,7 @@ peertube_menu_videos()
|
|||
sub_menu=1
|
||||
page=0
|
||||
while [ $sub_menu -eq 1 ]; do
|
||||
names=$(jj -i preload -l 'data.#.name')
|
||||
names=$(jj -i preload -l 'data.#.name' | nl -s: -v0 -w1)
|
||||
menu_videos_choice=$(echo "Main menu\n$names\nNext page" | fzy)
|
||||
case $menu_videos_choice in
|
||||
"Main menu") sub_menu=0 ;;
|
||||
|
@ -84,7 +84,8 @@ peertube_menu_videos()
|
|||
peertube_api_get_local_videos $page
|
||||
fi ;;
|
||||
*)
|
||||
video_uuid=$(jj -i preload data.#[name="$menu_videos_choice"].uuid)
|
||||
index=$(echo $menu_videos_choice | cut -f 1 -d:)
|
||||
video_uuid=$(jj -i preload data.$index.uuid)
|
||||
if [ "$1" = 'lives' ]; then
|
||||
peertube_menu_stream $video_uuid
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue