mirror of
https://gitea.phreedom.club/localhost_frssoft/peertube_torrent_url
synced 2024-11-13 23:23:17 +00:00
format txt
This commit is contained in:
parent
443f03a447
commit
12b5e3ac0f
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue