From 12b5e3ac0f0ac44710ed983f695000707b4e65b4 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Sun, 6 Mar 2022 21:09:45 +0300 Subject: [PATCH] format txt --- get_torrent_url.sh | 12 ++++++------ kafazen_channel.md => kafazen_channel.txt | 0 lies_channel.md => lies_channel.txt | 0 regex.md => regex.txt | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename kafazen_channel.md => kafazen_channel.txt (100%) rename lies_channel.md => lies_channel.txt (100%) rename regex.md => regex.txt (100%) diff --git a/get_torrent_url.sh b/get_torrent_url.sh index 5870bf5..98b1c25 100755 --- a/get_torrent_url.sh +++ b/get_torrent_url.sh @@ -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 } diff --git a/kafazen_channel.md b/kafazen_channel.txt similarity index 100% rename from kafazen_channel.md rename to kafazen_channel.txt diff --git a/lies_channel.md b/lies_channel.txt similarity index 100% rename from lies_channel.md rename to lies_channel.txt diff --git a/regex.md b/regex.txt similarity index 100% rename from regex.md rename to regex.txt