You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -28,6 +28,6 @@ To authentificate to Crunchyroll, you will need a cookies.txt file. To extract t
28
28
29
29
Once installed, go to crunchyroll.com, login if that's not already done (don't forget to tick "Stay logged in"), then click on the extensions's icon, and click download.
tput setaf 1;echo youtube-dl has not been found. Please install it and relaunch this script. If you are sure you have it installed, please open an issue on GitHub. https://l.r33.space/crdlissue
20
-
echo Press CTRL+C to exit.
21
-
sleep infinity
22
-
else
23
-
sleep 0.5
24
-
clear
25
-
tput setaf 6;echo Welcome!
26
-
sleep 0.2
27
-
tput setaf 5;echo This script makes it easier to download anime videos from Crunchyroll using youtube-dl.
28
-
sleep 0.2
29
-
echo Enjoy!
30
-
sleep 0.2
31
-
echo
32
-
tput setaf 2;read -e -p 'First, enter the link of the video you want to download: ' link
7
+
functionstart {
8
+
tput setaf 4;echo"Checking for youtube-dl..."
9
+
sleep 0.2
10
+
if!type"youtube-dl"> /dev/null;then
11
+
tput setaf 1;echo"youtube-dl has not been found. Please install it and relaunch this script. If you are sure you have it installed, please open an issue on GitHub. https://l.r33.space/crdlissue"
12
+
echo Press CTRL+C to exit.
13
+
sleep infinity
14
+
else
15
+
tput setaf 2;echo"youtube-dl has been found, we may continue!"
read -e -p 'Enter the path of your cookies.txt file. Not sure of what it is? Check the readme on GitHub for details. https://l.r33.space/crdl: ' cookies
67
-
if [ -f$cookies ]
68
-
then
69
-
echo Cookies file found.
70
-
sleep 0.5
71
-
clear
72
-
echo'Where do you want to save your video? Empty input will save to the current path.'
73
-
tput setaf 1;read -e -p 'Enter path: ' output
74
-
sleep 0.5
75
-
clear
76
-
tput setaf 5;echo'Alright. At the moment, this script downloads english subtitles at the moment. If you need another language, feel free to modify the script!'
tput setaf 2;echo'youtube-dl command has completed! Download should be done. If you have encountered any issue, please open an issue on GitHub. https://l.r33.space/crdlissue'
tput setaf 2;echo'youtube-dl command has completed! Download should be done. If you have encountered any issue, please open an issue on GitHub. https://l.r33.space/crdlissue'
88
-
tput reset
89
-
fi
90
-
else
91
-
tput setaf 1 echo Cookies file not found. Please try again.
92
-
sleep 0.5
93
-
tput setaf 2
94
-
jumpto cookiesstep
95
-
fi
96
-
else
22
+
functionquit {
23
+
tput setaf 5;echo"Exiting. Have a great day!"
97
24
sleep 0.5
98
-
tput setaf 1;echo"Invalid link. Make sure you entered a Crunchyroll link."
99
-
fi
100
-
fi
25
+
tput reset
26
+
exit 1
27
+
}
28
+
29
+
functioncookie {
30
+
tput setaf 6;echo"First of all, let's identify you! If you want to use an account, please specify the path of your cookies.txt file. Not sure about what I am talking about? Check README for more details. https://l.r33.space/crdl"
31
+
tput setaf 5;echo"If you do not want to use an account, just press enter. Please keep in mind that without an account, you will not be able to download premium-only videos and maximum quality is 480p."
32
+
echo""
33
+
tput setaf 6;read -e -p "Path: " cookies
34
+
if [ -f$cookies ]
35
+
then
36
+
echo""
37
+
tput setaf 2;echo"Yep, I found the file you specified!"
38
+
tput reset
39
+
download-cookie
40
+
else
41
+
echo""
42
+
tput setaf 1;echo"You seem to have not specified a cookie file. Maximum quality is 480p."
0 commit comments