diff --git a/get_torrent_url.sh b/get_torrent_url.sh index 9d1d9e6..78772c6 100755 --- a/get_torrent_url.sh +++ b/get_torrent_url.sh @@ -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' diff --git a/regex.txt b/regex.txt index 24b39ac..e3ca56b 100644 --- a/regex.txt +++ b/regex.txt @@ -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 diff --git a/torrents/xxiv_production_video/regex/61b76b53-3741-4fb6-8235-146c77a2ecd1-720-hls.torrent b/torrents/xxiv_production_video/regex/61b76b53-3741-4fb6-8235-146c77a2ecd1-720-hls.torrent new file mode 100644 index 0000000..ad42f46 Binary files /dev/null and b/torrents/xxiv_production_video/regex/61b76b53-3741-4fb6-8235-146c77a2ecd1-720-hls.torrent differ