format txt

This commit is contained in:
localhost_frssoft 2022-03-06 21:09:45 +03:00
parent 443f03a447
commit 12b5e3ac0f
4 changed files with 6 additions and 6 deletions

View File

@ -24,8 +24,8 @@ get_all_torrents ()
for uuid in $get_uuids; do
echo $uuid
video=$(peertube_api_get_video $uuid)
echo $video | jj name >> "$channel".md
echo $video | jj -l 'streamingPlaylists' | jj -l 'files.#.torrentUrl' | sed 's/"//g' >> "$channel".md
echo $video | jj name >> "$channel".txt
echo $video | jj -l 'streamingPlaylists' | jj -l 'files.#.torrentUrl' | sed 's/"//g' >> "$channel".txt
sleep 1
done
}
@ -36,10 +36,10 @@ get_latest_torrent_video ()
for uuid in $get_uuids; do
echo $uuid
video=$(peertube_api_get_video $uuid)
echo $video | jj name >> temp_"$channel".md
echo $video | jj -l 'streamingPlaylists' | jj -l 'files.#.torrentUrl' | sed 's/"//g' >> temp_"$channel".md
cat "$channel".md >> temp_"$channel".md
mv temp_"$channel".md "$channel".md
echo $video | jj name >> temp_"$channel".txt
echo $video | jj -l 'streamingPlaylists' | jj -l 'files.#.torrentUrl' | sed 's/"//g' >> temp_"$channel".txt
cat "$channel".txt >> temp_"$channel".txt
mv temp_"$channel".txt "$channel".txt
done
}

View File