blob: d80672bde7c3be415a9e7d1ec8a8046542e9032b (
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
49
50
51
52
53
54
55
56
57
|
#!/bin/bash
BPurple='\033[1;35m' # Bold purple
Cyan='\033[0;36m' # Cyan
Reset='\033[0m' # Reset
call_to_action() {
echo -e "$Cyan"
echo " +-----------------------------------------------------------------------------------------+"
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 proxychains with tor. |"
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 "$Reset"
}
after_remove() {
echo -e "$Cyan"
echo " +--------------------------------------------------------------------------------+"
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 "$Reset"
}
# arg 1: the new package version
post_install() {
echo -e "$BPurple:: done installing 'python-spotdl $1' $Reset"
call_to_action
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
echo -e "$BPurple:: done upgrading python-spotdl from '$2' to '$1' $Reset"
call_to_action
}
# arg 1: the old package version
post_remove() {
echo -e "$BPurple:: done removing 'python-spotdl $1' $Reset"
after_remove
}
|