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