-
Notifications
You must be signed in to change notification settings - Fork 0
/
REntropy
executable file
·93 lines (73 loc) · 2.93 KB
/
REntropy
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
########################################################################
########################################################################
#### ##
#### File Name: REntropy ##
#### ##
#### Github Repo: https://github.com/drednaut/REntropy.git ##
#### ##
#### Author: Jared Knutson ##
#### ##
#### Email: jaredknutson@nevada.unr.edu ##
#### ##
#### Date: 5/19/2017 ##
#### ##
#### Dependencies: youtube-dl avconv ##
#### ##
#### Version: 0.4.0 ##
#### ##
#### Usage: ./REntropy ##
#### ##
#### Notes: ##
#### ##
########################################################################
########################################################################
welcome() {
echo -e "\t\tREntropy Youtube Channel Scraper"
echo -e ''
echo -e "\t\t$(date)"
echo -e ''
echo -e "SELECT AN OPTION TO CONTINUE:\n1)New Process\n2)Second Iteration\n3)Third Iteration\n"
read choice
case $choice in
1)
from_firstIter
;;
2)
from_secondIter
;;
3)
from_thirdIter
;;
*)
echo "Sorry your choice was not recognized.."
exit
;;
esac
}
from_firstIter() {
echo "Enter the name of the channel you would like to download from: "
read channel
./firstIter.sh $channel
echo "First Iteration COMPLETE\nBeginning Second Iteration.."
./secondIter.sh
echo "Enter the name of the subchannel (blank for null): "
read subchannel
./thirdIter.sh $subchannel
}
from_secondIter() {
echo "Beginning Second Iteration.."
./secondIter.sh
echo "Enter the name of the subchannel (blank for null): "
read subchannel
./thirdIter.sh $subchannel
}
from_thirdIter() {
echo "Enter the name of the subchannel (blank for null): "
read subchannel
./thirdIter.sh $subchannel
}
#-------BEGIN PROGRAM------------
clear
welcome
#---------END PROGRAM-------------