mirror of
https://gitea.phreedom.club/localhost_frssoft/peertube_torrent_url
synced 2024-11-13 23:23:17 +00:00
regex +1, get_sizes func
This commit is contained in:
parent
767778661d
commit
dfe94f84bf
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue