regex +1, get_sizes func

This commit is contained in:
localhost_frssoft 2022-03-13 00:47:32 +03:00
parent 767778661d
commit dfe94f84bf
3 changed files with 15 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# dep: jj sed curl
domain='xxivproduction.video'
channel='lies_channel'
channel='regex'
count=1 # set to 1 for get latest video from channel
peertube_api_get_channel_videos ()
@ -44,9 +44,20 @@ get_latest_torrent_video ()
done
}
get_sizes ()
{
echo 'Getting sizes...'
for uuid in $get_uuids; do
echo $uuid
video=$(peertube_api_get_video $uuid)
echo $video | jj -l 'streamingPlaylists' | jj -l 'files.#.size' | sed 's/"//g' >> datasizes
done
awk '{s+=$1} END {printf "%.0f", s}' datasizes
}
if [ $count -ge 2 ]; then
get_all_torrents
elif [ $count -eq 1 ]; then
get_latest_torrent_video
fi
echo 'Done'
echo '\nDone'

View File

@ -1,3 +1,5 @@
Регулярные Выражения #28
https://xxivproduction.video/lazy-static/torrents/61b76b53-3741-4fb6-8235-146c77a2ecd1-720-hls.torrent
Регулярные Выражения #27
https://xxivproduction.video/lazy-static/torrents/8d5f1f06-8cd0-4450-8ede-671753f251d9-720-hls.torrent
Регулярные Выражения #26