summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkiz <skiznet@aol.com>2024-11-16 16:50:18 -0500
committerSkiz <skiznet@aol.com>2024-11-16 16:50:18 -0500
commit8d8398c2896ac47449156af9634310181defefcf (patch)
tree078cc41b0f06ba9997f0709adc921e4f7c34dc3b
parent2bc738b9ee4fd8e2f526487c34e3d9a8bbf181ae (diff)
Script saves history to file
-rwxr-xr-xmediachad2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediachad b/mediachad
index 03dd86f..89d0068 100755
--- a/mediachad
+++ b/mediachad
@@ -49,7 +49,7 @@ file=".yt-history"
time=$(date +%T-%m-%d-%y)
title=$(yt-dlp --get-title --quiet "$link")
-echo -e "Search: $input \nDate: $time \nTitle: $title \nLink: $link \n"
+echo -e "Search: $input \nDate: $time \nTitle: $title \nLink: $link \n" >> ~/.yt-history
# USING YT-DLP
#yt-dlp -o - --quiet "link" | mpv - --pause > /dev/null 2>&1