added music scripts
This commit is contained in:
parent
619e2232a9
commit
d3bc7616e9
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
REPOSITORY="/Users/siddhartha/OneDrive - Karmani Service Technologies Pvt. Ltd/Backups/logseq-backup"
|
||||||
|
|
||||||
|
CURRENTDATETIME=`date +"%Y-%m-%d-%T"`
|
||||||
|
|
||||||
|
/usr/local/bin/borg create -v --stats --compression zstd,22 "$REPOSITORY"::$CURRENTDATETIME /Users/siddhartha/logseq
|
||||||
|
|
||||||
|
/usr/local/bin/borg prune -v --list "$REPOSITORY" --keep-within 6H --keep-daily=1
|
|
@ -0,0 +1 @@
|
||||||
|
mpv --no-video --shuffle https://www.youtube.com/playlist?list=PLDatSOpDhUwKxULBlcPc9d0cHwgAm7M4N
|
|
@ -0,0 +1,25 @@
|
||||||
|
Steezy-coffee-shop: https://www.youtube.com/watch?v=-5KAN9_CzSA
|
||||||
|
Lofi-hip-hop: https://www.youtube.com/watch?v=7NOSDKb0HlU
|
||||||
|
Bootleg-smoke: https://www.youtube.com/watch?v=l7TxwBhtTUY
|
||||||
|
Chillhop-raccoon: https://www.youtube.com/watch?v=5yx6BWlEVcY
|
||||||
|
Chillhop-relaxing-raccoon: https://www.youtube.com/watch?v=7NOSDKb0HlU
|
||||||
|
College-girl: https://www.youtube.com/watch?v=MCkTebktHVc
|
||||||
|
College-guy: https://www.youtube.com/watch?v=2atQnvunGCo
|
||||||
|
College-lonely: https://www.youtube.com/watch?v=bM0Iw7PPoU4
|
||||||
|
Everything-fades-to-blue: https://www.youtube.com/watch?v=PfgS405CdXk
|
||||||
|
Lofi-girl: https://www.youtube.com/watch?v=5qap5aO4i9A
|
||||||
|
Lofi-sleepy-girl: https://www.youtube.com/watch?v=DWcJFNfaw9c
|
||||||
|
Jazz-n-HipHop: https://www.youtube.com/watch?v=VjY3dgHIEoo
|
||||||
|
Productive-music-radio: https://www.youtube.com/watch?v=BhbhiQZwjf4
|
||||||
|
Chill-music-radio: https://www.youtube.com/watch?v=zPNi78sVbio
|
||||||
|
Night-work-radio: https://www.youtube.com/watch?v=kN7eZFLFXYY
|
||||||
|
Crypto-music: https://www.youtube.com/watch?v=_daTfgc4u3k
|
||||||
|
Nightflow-music: https://www.youtube.com/watch?v=K8kXcNqWN8g
|
||||||
|
Cyber-city-music: https://www.youtube.com/watch?v=NuD3o-HTbc8
|
||||||
|
Relaxing-music-radio: https://www.youtube.com/watch?v=R4yZ15_gwC4
|
||||||
|
Soft-music-radio: https://www.youtube.com/watch?v=Ek1-adoyE_0
|
||||||
|
Chill-music-radio: https://www.youtube.com/watch?v=AiH9LG22zW4
|
||||||
|
Lofi-hip-hop-music: https://www.youtube.com/watch?v=5qap5aO4i9A
|
||||||
|
Lofi-hiphop-radio: https://www.youtube.com/watch?v=DWcJFNfaw9c
|
||||||
|
Coding-in-Chicago: https://www.youtube.com/watch?v=8rnRnHC_RY8
|
||||||
|
Coding-in-Chicago-2: https://www.youtube.com/watch?v=8YA825ZNAIE
|
|
@ -0,0 +1,47 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
function get_list() {
|
||||||
|
cat $listfile
|
||||||
|
}
|
||||||
|
|
||||||
|
baseurl="https://www.youtube.com/watch?v="
|
||||||
|
listfile=${1:-~/Music/scripts/lofi.txt}
|
||||||
|
[ ! -s "$listfile" ] && echo "missing list: $listfile" && exit 1
|
||||||
|
|
||||||
|
last=1
|
||||||
|
lastplayed=""
|
||||||
|
origlist=$(get_list)
|
||||||
|
list=$origlist
|
||||||
|
while true ; do
|
||||||
|
echo "choose from the list:"
|
||||||
|
entries=$(echo "$list" | nl -s '|' |sed -e 's/^ *//g' | awk -F"|" -vbase=$baseurl '{
|
||||||
|
($4 ~ /http/) ? b="" : b=base;
|
||||||
|
printf("%3s | %-75s (%s)\n", $1, substr($2, 1, 200), b$3);
|
||||||
|
}')
|
||||||
|
echo "$entries"
|
||||||
|
[ ! -z "$lastplayed" ] && echo -e "\n Last played: $lastplayed\n"
|
||||||
|
count=$(echo "$entries"|wc -l |tr -d " ")
|
||||||
|
|
||||||
|
echo -e "\nenter choice [0: reset l: reload s: shuffle r: random n: next p: replay c: clear q: quit]: \c"
|
||||||
|
read srl
|
||||||
|
[ "$srl" = "q" ] && exit
|
||||||
|
[ "$srl" = "c" ] && clear
|
||||||
|
[ "$srl" = "0" ] && list=$origlist
|
||||||
|
[ "$srl" = "l" ] && list=$(get_list)
|
||||||
|
[ "$srl" = "p" ] && srl=$last
|
||||||
|
[ "$srl" = "r" ] && srl=$(echo "$entries"|awk '{print $1}'|shuf -i1-$count -n 1)
|
||||||
|
[ "$srl" = "s" ] && list=$(echo "$list"|shuf)
|
||||||
|
[ "$srl" = "n" ] && srl=$((last+1 > count ? count : last+1))
|
||||||
|
match=$(echo "$entries"|awk -v srl=$srl '$1 == srl')
|
||||||
|
[ -z "$match" ] && continue
|
||||||
|
last=$srl
|
||||||
|
|
||||||
|
name=$(echo "$match" | cut -d"|" -f2)
|
||||||
|
# url=$(echo "$match" | cut -d"(" -f2 | cut -d")" -f1|tr -d " ")
|
||||||
|
url=$(echo "$match" | awk '{print $4}')
|
||||||
|
|
||||||
|
title="$(echo $name|tr -s " ")"
|
||||||
|
echo "Playing $title"
|
||||||
|
mpv --no-video $url
|
||||||
|
lastplayed=$title
|
||||||
|
done
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
entries=$(cat /home/mr_robot/Music/scripts/programming-music.txt | shuf | awk '{print $2}')
|
||||||
|
|
||||||
|
track=$(echo $entries | awk '{print $1}')
|
||||||
|
|
||||||
|
mpv --no-video $track
|
|
@ -0,0 +1,64 @@
|
||||||
|
Datasette: http://datashat.net/music_for_programming_1-datassette.mp3
|
||||||
|
Sunjammer: http://datashat.net/music_for_programming_2-sunjammer.mp3
|
||||||
|
Datasette-2: http://datashat.net/music_for_programming_3-datassette.mp3
|
||||||
|
Com-Cruise: http://datashat.net/music_for_programming_4-com_truise.mp3
|
||||||
|
Abe-Mangger: http://datashat.net/music_for_programming_5-abe_mangger.mp3
|
||||||
|
Gods-new-age: http://datashat.net/music_for_programming_6-gods_of_the_new_age.mp3
|
||||||
|
Talhoff-garten-untitled: http://datashat.net/music_for_programming_7-tahlhoff_garten_and_untitled.mp3
|
||||||
|
Connectedness-locus: http://datashat.net/music_for_programming_8-connectedness_locus.mp3
|
||||||
|
Datasette-3: http://datashat.net/music_for_programming_9-datassette.mp3
|
||||||
|
Unity-gain-temple: http://datashat.net/music_for_programming_10-unity_gain_temple.mp3
|
||||||
|
Miles-tilmann: http://datashat.net/music_for_programming_11-miles_tilmann.mp3
|
||||||
|
Forgotten-light: http://datashat.net/music_for_programming_12-forgotten_light.mp3
|
||||||
|
Matt-whitehead: http://datashat.net/music_for_programming_13-matt_whitehead.mp3
|
||||||
|
Talhoff-garten-untitled-2: http://datashat.net/music_for_programming_14-tahlhoff_garten_and_untitled.mp3
|
||||||
|
Dan-adeyami: http://datashat.net/music_for_programming_15-dan_adeyemi.mp3
|
||||||
|
Silent-stelios: http://datashat.net/music_for_programming_16-silent_stelios.mp3
|
||||||
|
Graphplan: http://datashat.net/music_for_programming_17-graphplan.mp3
|
||||||
|
Konx-on-pax: http://datashat.net/music_for_programming_18-konx_om_pax.mp3
|
||||||
|
Hivemind: http://datashat.net/music_for_programming_19-hivemind.mp3
|
||||||
|
Uberdog: http://datashat.net/music_for_programming_20-uberdog.mp3
|
||||||
|
Idol-eyes: http://datashat.net/music_for_programming_21-idol_eyes.mp3
|
||||||
|
mindaugasz: http://datashat.net/music_for_programming_22-mindaugaszq.mp3
|
||||||
|
Panda-magic: http://datashat.net/music_for_programming_23-panda_magic.mp3
|
||||||
|
Rites: http://datashat.net/music_for_programming_24-rites.mp3
|
||||||
|
Nono: http://datashat.net/music_for_programming_25-_nono_.mp3
|
||||||
|
Abstraction: http://datashat.net/music_for_programming_26-abstraction.mp3
|
||||||
|
Michael-hicks: http://datashat.net/music_for_programming_27-michael_hicks.mp3
|
||||||
|
Big-war: http://datashat.net/music_for_programming_28-big_war.mp3
|
||||||
|
Luke-handsfree: http://datashat.net/music_for_programming_29-luke_handsfree.mp3
|
||||||
|
Matt-kruse: http://datashat.net/music_for_programming_30-matt_kruse.mp3
|
||||||
|
Datasette-4: http://datashat.net/music_for_programming_31-datassette.mp3
|
||||||
|
Chris-seddon: http://datashat.net/music_for_programming_32-chris_seddon.mp3
|
||||||
|
Uuav: http://datashat.net/music_for_programming_33-uuav.mp3
|
||||||
|
Chukus: http://datashat.net/music_for_programming_34-chukus.mp3
|
||||||
|
Nadim-kobeissi: http://datashat.net/music_for_programming_35-nadim_kobeissi.mp3
|
||||||
|
Ea7-dmz: http://datashat.net/music_for_programming_36-ea7_dmz.mp3
|
||||||
|
Lackluster: http://datashat.net/music_for_programming_37-lackluster.mp3
|
||||||
|
Aurelius: http://datashat.net/music_for_programming_38-j_s_aurelius.mp3
|
||||||
|
Kidding-kurrys: http://datashat.net/music_for_programming_39-kidding_kurrys.mp3
|
||||||
|
Mark-schneider: http://datashat.net/music_for_programming_40-mark_schneider.mp3
|
||||||
|
Sunjammer: http://datashat.net/music_for_programming_41-sunjammer.mp3
|
||||||
|
Datasette-5: http://datashat.net/music_for_programming_42-datassette.mp3
|
||||||
|
Hey-exit: http://datashat.net/music_for_programming_43-hey_exit.mp3
|
||||||
|
Hukka: http://datashat.net/music_for_programming_44-hukka.mp3
|
||||||
|
Ehohroma: http://datashat.net/music_for_programming_45-ehohroma.mp3
|
||||||
|
Jo-johnson: http://datashat.net/music_for_programming_46-jo_johnson.mp3
|
||||||
|
Abe-mangger: http://datashat.net/music_for_programming_47-abe_mangger.mp3
|
||||||
|
Michael-hicks-2: http://datashat.net/music_for_programming_48-michael_hicks.mp3
|
||||||
|
Julien-mier: http://datashat.net/music_for_programming_49-julien_mier.mp3
|
||||||
|
Misc-works: http://datashat.net/music_for_programming_50-misc.works.mp3
|
||||||
|
mucha: http://datashat.net/music_for_programming_51-m%C3%BCcha.mp3
|
||||||
|
Inchindown: http://datashat.net/music_for_programming_52-inchindown.mp3
|
||||||
|
Beb-welten: http://datashat.net/music_for_programming_53-beb_welten.mp3
|
||||||
|
Hler: http://datashat.net/music_for_programming_54-hler.mp3
|
||||||
|
Jazz-funk-greats: http://datashat.net/music_for_programming_55-20_jazz_funk_greats.mp3
|
||||||
|
Forest-drive-west: http://datashat.net/music_for_programming_56-forest_drive_west.mp3
|
||||||
|
Hainbach: http://datashat.net/music_for_programming_57-hainbach.mp3
|
||||||
|
Olive-is-the-sun: http://datashat.net/music_for_programming_58-olive_is_the_sun.mp3
|
||||||
|
Miunau: http://datashat.net/music_for_programming_59-miunau.mp3
|
||||||
|
Tundra: http://datashat.net/music_for_programming_60-tundra.mp3
|
||||||
|
Linnley: http://datashat.net/music_for_programming_61-linnley.mp3
|
||||||
|
Our-grey-lives: http://datashat.net/music_for_programming_62-our_grey_lives.mp3
|
||||||
|
T-FLX: https://datashat.net/music_for_programming_63-t-flx.mp3
|
||||||
|
Strepsil: https://datashat.net/music_for_programming_64-strepsil.mp3
|
|
@ -0,0 +1,7 @@
|
||||||
|
Mission-control: https://somafm.com/missioncontrol130.pls
|
||||||
|
Defcon: https://somafm.com/defcon256.pls
|
||||||
|
Cliqhop: https://somafm.com/cliqhop256.pls
|
||||||
|
DroneZone: https://somafm.com/dronezone256.pls
|
||||||
|
Groove-Salad: https://somafm.com/groovesalad256.pls
|
||||||
|
Secret-Agent: https://somafm.com/secretagent130.pls
|
||||||
|
Deep-space-one: https://somafm.com/deepspaceone130.pls
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
entries=$(cat /home/mr_robot/Music/scripts/somafm-ambient.txt | shuf | awk '{print $2}')
|
||||||
|
|
||||||
|
track=$(echo $entries | awk '{print $1}')
|
||||||
|
|
||||||
|
mpv --no-video $track
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
entries=$(cat /home/mr_robot/Music/scripts/videogame-music.txt | shuf | awk '{print $2}')
|
||||||
|
|
||||||
|
track=$(echo $entries | awk '{print $1}')
|
||||||
|
|
||||||
|
mpv --no-video $track
|
|
@ -0,0 +1,9 @@
|
||||||
|
World-of-Warcraft: http://datashat.net/music_for_programming_56-forest_drive_west.mp3
|
||||||
|
World-of-Warcraft-2: https://www.youtube.com/watch?v=wjTe0R2bREY
|
||||||
|
Skyrim: https://www.youtube.com/watch?v=hBkcwy-iWt8
|
||||||
|
Skyrim-2: https://www.youtube.com/watch?v=vgUaZz04bkw
|
||||||
|
Blade-runner: https://www.youtube.com/watch?v=k3fz6CC45ok
|
||||||
|
LOTR-Nazgul-Ambience: https://www.youtube.com/watch?v=y1Wum6hQclU
|
||||||
|
Ambience-with-rain: https://www.youtube.com/watch?v=UzEfSjTYvDc
|
||||||
|
Witcher-3: https://www.youtube.com/watch?v=I-cC3wSKAGk
|
||||||
|
Stellaris: https://www.youtube.com/playlist?list=PLyH4vonV9j1vPfAgU6wUZ_7A52cVavRYD
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
if pidof -o %PPID -x "rclone-logseq-copy.sh"; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
/usr/bin/rclone copy --verbose --create-empty-src-dirs /home/mr_robot/logseq gdrive:Backup/logseq --log-file /home/mr_robot/cronlogs/logseq-copy.log
|
||||||
|
exit
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
if pidof -o %PPID -x "rclone-mount.sh"; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
/usr/bin/rclone mount gdrive:Books /home/mr_robot/GoogleDriveBooks/ --vfs-cache-mode writes --daemon --verbose --log-file /home/mr_robot/cronlogs/drivebooks-mount.log
|
||||||
|
|
||||||
|
/usr/bin/rclone mount gdrive:Backup/logseq /home/mr_robot/logseq-gdrive-backup/ --vfs-cache-mode writes --daemon --verbose --log-file /home/mr_robot/cronlogs/logseq-mount.log
|
||||||
|
|
||||||
|
/usr/bin/rclone mount gdrive:Backup/SingleFileZ-Save-Everything /home/mr_robot/Collection/SingleFileZ-Save-Everything/ --vfs-cache-mode writes --daemon --verbose --log-file /home/mr_robot/cronlogs/logseq-mount.log
|
||||||
|
exit
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
torrentID=${torrentID:-$1}
|
||||||
|
label1=${label1:-$2}
|
||||||
|
label2=${label2:-$3}
|
||||||
|
|
||||||
|
transmission-remote -t $torrentID --labels [$label1,$label2]
|
|
@ -0,0 +1,143 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
torrentsIdle=($(transmission-remote --list | grep Idle | awk '{print $1}'))
|
||||||
|
|
||||||
|
mamTracker="t.myanonamouse.net"
|
||||||
|
bitspyderTracker="bitspyder.net"
|
||||||
|
|
||||||
|
graphicsDir="/home/mr_robot/Collection/MAM/Graphic-Novels/"
|
||||||
|
ebooksDir="/home/mr_robot/Collection/MAM/Ebooks/"
|
||||||
|
audiobooksDir="/home/mr_robot/Collection/MAM/Audiobooks/"
|
||||||
|
frenchDir="/home/mr_robot/Collection/Learning-Languages/French/"
|
||||||
|
guitarDir="/home/mr_robot/Collection/Learning-Music/"
|
||||||
|
bitspyderDir="/home/mr_robot/Collection/BitSpyder/"
|
||||||
|
filelistDir="/home/mr_robot/Collection/To-Delete/Filelist/"
|
||||||
|
asianCinemaDir="/home/mr_robot/Collection/To-Delete/AsianCinema/"
|
||||||
|
torrentleechDir="/home/mr_robot/Collection/To-Delete/Torrentleech/"
|
||||||
|
beyondhdDir="/run/media/mr_robot/7FD0807223B36019/Golu/Movies/Beyond-HD/"
|
||||||
|
blutopiaDir="/run/media/mr_robot/7FD0807223B36019/Golu/Movies/Blutopia/"
|
||||||
|
brokenStonesDir="/home/mr_robot/Collection/BrokenStones/"
|
||||||
|
cinemazDir="/home/mr_robot/Collection/CinemaZ/"
|
||||||
|
exoticazDir="/home/mr_robot/Collection/To-Delete/ExoticaZ/"
|
||||||
|
lztrDir="/home/mr_robot/Collection/LzTr-Downloads/"
|
||||||
|
orpheusDir="/home/mr_robot/Collection/Orpheus-Downloads/"
|
||||||
|
pterclubDir="/run/media/mr_robot/7FD0807223B36019/Golu/Movies/PTerclub/"
|
||||||
|
secretCinemaDir="/home/mr_robot/Collection/Secret-Cinema/"
|
||||||
|
generalDir="/home/mr_robot/Collection/General-Downloads/"
|
||||||
|
|
||||||
|
|
||||||
|
for i in "${torrentsIdle[@]}"; do
|
||||||
|
tracker="$(transmission-remote -t $i -i | grep Magnet )"
|
||||||
|
labels="$(transmission-remote -t $i -i | grep Labels )"
|
||||||
|
|
||||||
|
if [[ "$tracker" == *"$mamTracker"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
fileType="$(transmission-remote -t $i -f)"
|
||||||
|
if [[ ("$fileType" == *"mp3"*) || ("$fileType" == *"m4b"*) ]]; then
|
||||||
|
transmission-remote -t $i --labels [mam,audiobooks]
|
||||||
|
transmission-remote -t $i --move $audiobooksDir
|
||||||
|
elif [[ ("$fileType" == *"cbr"*) || ("$fileType" == *"cbz"*) ]]; then
|
||||||
|
transmission-remote -t $i --labels [mam,graphic-novels]
|
||||||
|
transmission-remote -t $i --move $graphicsDir
|
||||||
|
else
|
||||||
|
echo "Moved cbr/cbz/mp3/m4b files. Rest should be ebooks!"
|
||||||
|
transmission-remote -t $i --move $ebooksDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
elif [[ "$labels" == *"graphic-novels"* ]]; then
|
||||||
|
transmission-remote -t $i --move $graphicsDir
|
||||||
|
elif [[ "$labels" == *"french"* ]]; then
|
||||||
|
transmission-remote -t $i --move $frenchDir
|
||||||
|
elif [[ "$labels" == *"guitar"* ]]; then
|
||||||
|
transmission-remote -t $i --move $guitarDir
|
||||||
|
elif [[ "$labels" == *"audiobooks"* ]]; then
|
||||||
|
transmission-remote -t $i --move $audiobooksDir
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Nothing else to do for MAM torrents!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"bitspyder"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [bitspyder]
|
||||||
|
transmission-remote -t $i --move $bitspyderDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"filelist"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [filelist]
|
||||||
|
transmission-remote -t $i --move $filelistDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"asiancinema"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [asiancinema]
|
||||||
|
transmission-remote -t $i --move $asianCinemaDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"torrentleech"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [torrentleech]
|
||||||
|
transmission-remote -t $i --move $torrentleechDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"beyond-hd"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [beyondhd]
|
||||||
|
transmission-remote -t $i --move $beyondhdDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"blutopia"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [blutopia]
|
||||||
|
transmission-remote -t $i --move $blutopiaDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"brokenstones"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [brokenstones]
|
||||||
|
transmission-remote -t $i --move $brokenStonesDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"cinemaz"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [cinemaz]
|
||||||
|
transmission-remote -t $i --move $cinemazDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"exoticaz"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [exoticaz]
|
||||||
|
transmission-remote -t $i --move $exoticazDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"lztr"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [lztr]
|
||||||
|
transmission-remote -t $i --move $lztrDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"orpheus"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [orpheus]
|
||||||
|
transmission-remote -t $i --move $orpheusDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"pterclub"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [pterclub]
|
||||||
|
transmission-remote -t $i --move $pterclubDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"secret-cinema"* ]]; then
|
||||||
|
if [[ "$labels" != *'['* ]]; then
|
||||||
|
transmission-remote -t $i --labels [secret-cinema]
|
||||||
|
transmission-remote -t $i --move $secretCinemaDir
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "No other private trackers found, keep it in general download area"
|
||||||
|
transmission-remote -t $i --labels [general]
|
||||||
|
transmission-remote -t $i --move $generalDir
|
||||||
|
fi
|
||||||
|
done
|
|
@ -0,0 +1,36 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
audiobooksDir="/home/mr_robot/Collection/MAM/Audiobooks/"
|
||||||
|
graphicsDir="/home/mr_robot/Collection/MAM/Graphic-Novels/"
|
||||||
|
ebooksDir="/home/mr_robot/Collection/MAM/Ebooks/"
|
||||||
|
orpheusDir="/home/mr_robot/Collection/Orpheus-Downloads/"
|
||||||
|
libbleDownloads="/home/mr_robot/Collection/Libble-Downloads/"
|
||||||
|
bsDownloads="/home/mr_robot/Collection/BrokenStones/"
|
||||||
|
|
||||||
|
tracker="$(transmission-remote -t $TR_TORRENT_ID -i | grep Magnet )"
|
||||||
|
|
||||||
|
if [[ "$tracker" == *"myanonamouse.net"* ]]; then
|
||||||
|
fileType="$(transmission-remote -t $TR_TORRENT_ID -f)"
|
||||||
|
if [[ ("$fileType" == *"mp3"*) || ("$fileType" == *"m4b"*) ]]; then
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --labels [mam,audiobooks]
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --move $audiobooksDir
|
||||||
|
elif [[ ("$fileType" == *"cbr"*) || ("$fileType" == *"cbz"*) ]]; then
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --labels [mam,graphic-novels]
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --move $graphicsDir
|
||||||
|
else
|
||||||
|
echo "Moved cbr/cbz/mp3/m4b files. Rest should be ebooks!"
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --labels [mam,ebooks]
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --move $ebooksDir
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ "$tracker" == *"opsfet"* ]]; then
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --labels [orpheus,trash]
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --move $orpheusDir
|
||||||
|
elif [[ "$tracker" == *"libble"* ]]; then
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --labels [libble]
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --move $libbleDownloads
|
||||||
|
elif [[ "$tracker" == *"brokenstones"* ]]; then
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --labels [brokenstones]
|
||||||
|
transmission-remote -t $TR_TORRENT_ID --move $bsDownloads
|
||||||
|
fi
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mamDir="/home/mr_robot/Collection/MAM/Ebooks/"
|
||||||
|
graphicsDir="/home/mr_robot/Collection/MAM/Graphic-Novels/"
|
||||||
|
orpheusDir="/home/mr_robot/Collection/Orpheus-Downloads/"
|
||||||
|
orpheusMp3Dir="/home/mr_robot/Collection/Orpheus-Downloads/mp3/"
|
||||||
|
artDir="/home/mr_robot/Collection/Learning-Art/"
|
||||||
|
frenchDir="/home/mr_robot/Collection/Learning-Languages/French/"
|
||||||
|
cinemazDir="/home/mr_robot/Collection/CinemaZ/"
|
||||||
|
bithdtvDir="/run/media/mr_robot/7FD0807223B36019/Golu/Movies/Bit-HDTV"
|
||||||
|
moviesDir="/run/media/mr_robot/7FD0807223B36019/Golu/Movies/"
|
||||||
|
pterclubDir="/run/media/mr_robot/7FD0807223B36019/Golu/Movies/PTerclub/"
|
||||||
|
blutopiaDir="/run/media/mr_robot/7FD0807223B36019/Golu/Movies/Blutopia/"
|
||||||
|
localMoviesDir="/home/mr_robot/Collection/Movies-High-Quality/"
|
||||||
|
secretCinemaDir="/home/mr_robot/Collection/Cinema/"
|
||||||
|
avistazDir="/home/mr_robot/Collection/To-Delete/AvistaZ"
|
||||||
|
exoticazDir="/home/mr_robot/Collection/To-Delete/ExoticaZ"
|
||||||
|
|
||||||
|
for file in /home/mr_robot/Downloads/temp/*
|
||||||
|
do
|
||||||
|
transmission-remote --add "$file" -w $mamDir
|
||||||
|
#transmission-remote --add "$file" -w $avistazDir
|
||||||
|
#transmission-remote --add "$file" -w $exoticazDir
|
||||||
|
#transmission-remote --add "$file" -w $graphicsDir
|
||||||
|
#transmission-remote --add "$file" -w $artDir
|
||||||
|
#transmission-remote --add "$file" -w $orpheusMp3Dir
|
||||||
|
#transmission-remote --add "$file" -w $pterclubDir
|
||||||
|
#transmission-remote --add "$file" -w $blutopiaDir
|
||||||
|
#transmission-remote --add "$file" -w $orpheusDir
|
||||||
|
#transmission-remote --add "$file" -w $localMoviesDir
|
||||||
|
rm "$file"
|
||||||
|
done
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
transmission-remote --list
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
torrentID=${torrentID:-$1}
|
||||||
|
directory=${directory:-$2}
|
||||||
|
|
||||||
|
transmission-remote -t "$torrentID" --move "$directory"
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
torrentID=${torrentID:-$1}
|
||||||
|
|
||||||
|
transmission-remote -t $torrentID -i
|
Loading…
Reference in New Issue