summarylogtreecommitdiffstats
path: root/spotdl.install
blob: f7ddaf797c8866c04c1ba4ac396f18398fdbc200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash

B='\033[1;36m' # Bold cyan
C='\033[0;36m' # Cyan
R='\033[0m \a' # Reset all colors and ring a bell

call_to_action() {
	echo -e "$C"
	echo -e " +-$B=[ python-spotdl ]=$C---------------------------------------------------------------------+"
	echo " |   Remember,                                                                             |"
	echo " |   YouTube Music must be available in your country for spotDL to work.                   |"
	echo " |   This is because we use YouTube Music to filter search results.                        |"
	echo " |   You can check if YouTube Music is available in your country,                          |"
	echo " |   by visiting \`https://music.youtube.com/\`.                                             |"
	echo " |                                                                                         |"
	echo " |   If your country doesn't support YouTube Music,                                        |"
	echo " |   you can try using any vpn or torsocks.                                                |"
	echo " |                                                                                         |"
	echo " |   You can,                                                                              |"
	echo " |   run this app by executing 'spotdl' on your terminal                                   |"
	echo " |   star the project at           : https://github.com/spotDL/spotify-downloader          |"
	echo " |   vote the AUR package at       : https://aur.archlinux.org/packages/python-spotdl      |"
	echo " |   report issue about packaging  : https://github.com/z00rat/AUR/issues                  |"
	echo " |   report issue about the app at : https://github.com/spotDL/spotify-downloader/issues   |"
	echo " |   - zoorat.                                                                             |"
	echo " +-----------------------------------------------------------------------------------------+"
	echo -e "$R"
}

after_remove() {
	echo -e "$C"
	echo -e " +-$B=[ python-spotdl ]=$C------------------------------------------------------------+"
	echo " |   You should remove all '.spotdl-cache' files.                                 |"
	echo " |   to find that file run \` tree -fia /mnt /home | grep \".spotdl-cache\" \`        |"
	echo " |   - zoorat.                                                                    |"
	echo " +--------------------------------------------------------------------------------+"
	echo -e "$R"
}

post_install() {
	call_to_action
}
post_upgrade() {
	call_to_action
}
post_remove() {
	after_remove
}