From c08895b9a9b99bc86a7eec9815eaba9e475d64f0 Mon Sep 17 00:00:00 2001 From: notjoemartinez Date: Mon, 10 May 2021 00:24:52 -0500 Subject: [PATCH] more readme stuff --- README.md | 15 +++++---------- dl_script.sh | 20 -------------------- install.sh | 13 +++++++++++++ requirements.txt | 4 ++++ sync.sh | 4 ++-- 5 files changed, 24 insertions(+), 32 deletions(-) delete mode 100644 dl_script.sh create mode 100644 install.sh diff --git a/README.md b/README.md index dfd5a0a..d33c353 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,11 @@ I don't like paying $15 a month to listen to youtube videos with my phone locked ## Server-Side installation ```bash -apt install youtube-dl nginx php - -https://github.com/NotJoeMartinez/bootleg-youtube-Premium - -rm /var/www/html/*.html -mkdir /var/www/html/movies/ - -mv bootleg-youtube-Premium/html/index.php /var/www/html/ - -systemctl start nginx +sudo apt install apache2 youtube-dl +git clone https://github.com/NotJoeMartinez/bootleg-youtube-premium +cd bootleg-youtube-premium +pip3 install -r requirements.txt +sudo mkdir /var/www/html/videos ``` ## iOS installation diff --git a/dl_script.sh b/dl_script.sh deleted file mode 100644 index 60135a0..0000000 --- a/dl_script.sh +++ /dev/null @@ -1,20 +0,0 @@ -while getopts u: flag -do - case "${flag}" in - u) url=${OPTARG};; - esac -done - - - -echo "$url," >> history.txt - -rm /var/www/html/*.mp4 - -# save in movies directory with datetime -DATETIME=$(date +%F-%T) -youtube-dl -f mp4 $url -o /var/www/html/movies/$DATETIME.mp4 - -cp /var/www/html/movies/$DATETIME.mp4 /var/www/html/movie.mp4 - -systemctl reload nginx \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..05473af --- /dev/null +++ b/install.sh @@ -0,0 +1,13 @@ +sudo apt update +sudo apt upgrade +sudo apt install apache2 youtube-dl + +cd ~ +git clone https://github.com/NotJoeMartinez/bootleg-youtube-premium +cd bootleg-youtube-premium + +pip3 install -r requirements.txt + +sudo mkdir /var/www/html/videos + + diff --git a/requirements.txt b/requirements.txt index 4d9ba36..af370a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,6 @@ +click==7.1.2 +Flask==1.1.2 +itsdangerous==1.1.0 Jinja2==2.11.3 MarkupSafe==1.1.1 numpy==1.20.2 @@ -5,4 +8,5 @@ pandas==1.2.4 python-dateutil==2.8.1 pytz==2021.1 six==1.16.0 +Werkzeug==1.0.1 youtube-dl==2021.4.26 diff --git a/sync.sh b/sync.sh index e952d5a..b4a2626 100644 --- a/sync.sh +++ b/sync.sh @@ -1,3 +1,3 @@ -mv webapp/videos/*.mp4 /var/www/webapp/videos/ -mv webapp/index.html /var/www/webapp/ +mv webapp/videos/*.mp4 /var/www/html/videos/ +mv webapp/*.html /var/www/html/ systemctl reload apache2 \ No newline at end of file