#!/bin/sh
#
# Skripti autor Edmund Laugasson
#
# Laadi alla kõik Sakis Gouzonise muusika.
# Tegemist kristliku elektroonilise muusikaga.
#
# Määrame muutujad
FORMAT=mp3
URL=https://muusika.eelkrapla.ee
#
# Muusika kaust
# Kasutaja kataloogide muutujad on kirjas ~/.config/user-dirs.dirs ja nende poole saab pöörduda käsu xdg-user-dir abil (asub tarkvarapaketis xdg-user-dirs), täiendav teave man xdg-user-dir:
DIR1=$(xdg-user-dir MUSIC)
# See on muusiku nimi ja ilmselt ei ole vaja muuta
DIR2=Sakis_Gouzonis
#
# Loome kataloogid
mkdir -p $DIR1/$DIR2
#
# Tekitame ka faili kus muusika allalaadimise viited sees:
FILE=viide
echo "https://www.sakisgouzonis.com" > $DIR1/$DIR2/$FILE.txt
echo "https://muusika.eelkrapla.ee/Sakis_Gouzonis" >> $DIR1/$DIR2/$FILE.txt
#
# Järgnevalt on albumid aastate ja pealkirjade kaupa.
#
YEAR3=2008
DIR3=$YEAR3_First-Contact
mkdir -p $DIR1/$DIR2/$DIR3
cd $DIR1/$DIR2/$DIR3
wget -q --show-progress $URL/$DIR2/$DIR3/dl-$YEAR3-$FORMAT.sh
sh dl-$YEAR3-$FORMAT.sh
rm dl-$YEAR3-$FORMAT.sh
#
YEAR4=2009
DIR4=$YEAR4_New-Earth
mkdir -p $DIR1/$DIR2/$DIR4
cd $DIR1/$DIR2/$DIR4
wget -q --show-progress $URL/$DIR2/$DIR4/dl-$YEAR4-$FORMAT.sh
sh dl-$YEAR4-$FORMAT.sh
rm dl-$YEAR4-$FORMAT.sh
#
YEAR5=2010
DIR5=$YEAR5_The-Tree-Of-Life
mkdir -p $DIR1/$DIR2/$DIR5
cd $DIR1/$DIR2/$DIR5
wget -q --show-progress $URL/$DIR2/$DIR5/dl-$YEAR5-$FORMAT.sh
sh dl-$YEAR5-$FORMAT.sh
rm dl-$YEAR5-$FORMAT.sh
#
YEAR6=2011
DIR6=$YEAR6_Ultimate-Love
mkdir -p $DIR1/$DIR2/$DIR6
cd $DIR1/$DIR2/$DIR6
wget -q --show-progress $URL/$DIR2/$DIR6/dl-$YEAR6-$FORMAT.sh
sh dl-$YEAR6-$FORMAT.sh
rm dl-$YEAR6-$FORMAT.sh
#
YEAR7=2012
DIR7=$YEAR7_Vast-Victory
mkdir -p $DIR1/$DIR2/$DIR7
cd $DIR1/$DIR2/$DIR7
wget -q --show-progress $URL/$DIR2/$DIR7/dl-$YEAR7-$FORMAT.sh
sh dl-$YEAR7-$FORMAT.sh
rm dl-$YEAR7-$FORMAT.sh
#
YEAR8=2013
DIR8=$YEAR8_Spiritual-Unity
mkdir -p $DIR1/$DIR2/$DIR8
cd $DIR1/$DIR2/$DIR8
wget -q --show-progress $URL/$DIR2/$DIR8/dl-$YEAR8-$FORMAT.sh
sh dl-$YEAR8-$FORMAT.sh
rm dl-$YEAR8-$FORMAT.sh
#
YEAR9=2014
DIR9=$YEAR9_Golden-Heart
mkdir -p $DIR1/$DIR2/$DIR9
cd $DIR1/$DIR2/$DIR9
wget -q --show-progress $URL/$DIR2/$DIR9/dl-$YEAR9-$FORMAT.sh
sh dl-$YEAR9-$FORMAT.sh
rm dl-$YEAR9-$FORMAT.sh
#
YEAR10=2015
DIR10=$YEAR10_A-World-At-Peace
mkdir -p $DIR1/$DIR2/$DIR10
cd $DIR1/$DIR2/$DIR10
wget -q --show-progress $URL/$DIR2/$DIR10/dl-$YEAR10-$FORMAT.sh
sh dl-$YEAR10-$FORMAT.sh
rm dl-$YEAR10-$FORMAT.sh
#
YEAR11=2016
DIR11=$YEAR11_Liberating-Truth
mkdir -p $DIR1/$DIR2/$DIR11
cd $DIR1/$DIR2/$DIR11
wget -q --show-progress $URL/$DIR2/$DIR11/dl-$YEAR11-$FORMAT.sh
sh dl-$YEAR11-$FORMAT.sh
rm dl-$YEAR11-$FORMAT.sh
#
YEAR12=2017
DIR12=$YEAR12_Amazing-Space
mkdir -p $DIR1/$DIR2/$DIR12
cd $DIR1/$DIR2/$DIR12
wget -q --show-progress $URL/$DIR2/$DIR12/dl-$YEAR12-$FORMAT.sh
sh dl-$YEAR12-$FORMAT.sh
rm dl-$YEAR12-$FORMAT.sh
#
YEAR13=2018
DIR13=$YEAR13_Open-Horizon
mkdir -p $DIR1/$DIR2/$DIR13
cd $DIR1/$DIR2/$DIR13
wget -q --show-progress $URL/$DIR2/$DIR13/dl-$YEAR13-$FORMAT.sh
sh dl-$YEAR13-$FORMAT.sh
rm dl-$YEAR13-$FORMAT.sh
#
YEAR14=2019
DIR14=$YEAR14_Precious-Time
mkdir -p $DIR1/$DIR2/$DIR14
cd $DIR1/$DIR2/$DIR14
wget -q --show-progress $URL/$DIR2/$DIR14/dl-$YEAR14-$FORMAT.sh
sh dl-$YEAR14-$FORMAT.sh
rm dl-$YEAR14-$FORMAT.sh
#
YEAR15=2020
DIR15=$YEAR15_Desire-For-Light
mkdir -p $DIR1/$DIR2/$DIR15
cd $DIR1/$DIR2/$DIR15
wget -q --show-progress $URL/$DIR2/$DIR15/dl-$YEAR15-$FORMAT.sh
sh dl-$YEAR15-$FORMAT.sh
rm dl-$YEAR15-$FORMAT.sh
#
YEAR16=2020
DIR16=$YEAR16_Sweet-Freedom
mkdir -p $DIR1/$DIR2/$DIR16
cd $DIR1/$DIR2/$DIR16
wget -q --show-progress $URL/$DIR2/$DIR16/dl-$YEAR16-$FORMAT.sh
sh dl-$YEAR16-$FORMAT.sh
rm dl-$YEAR16-$FORMAT.sh
