Using pip to install youtube-dl
This commit is contained in:
parent
bceaa27085
commit
d71257422c
|
@ -7,10 +7,8 @@ machine:
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
pre:
|
pre:
|
||||||
- ffmpeg -version
|
|
||||||
- sudo apt-get remove -y ffmpeg
|
|
||||||
- ffmpeg -version
|
|
||||||
- bash install-dependencies.sh
|
- bash install-dependencies.sh
|
||||||
|
- pip install youtube-dl
|
||||||
- ffmpeg -version
|
- ffmpeg -version
|
||||||
|
|
||||||
override:
|
override:
|
||||||
|
|
|
@ -20,13 +20,4 @@ if [ ! -d "$HOME/opus/lib" ]; then
|
||||||
cd opus-1.0.3 && ./configure --prefix=$HOME/opus && make && make install
|
cd opus-1.0.3 && ./configure --prefix=$HOME/opus && make && make install
|
||||||
else
|
else
|
||||||
echo 'Using cached version of opus.';
|
echo 'Using cached version of opus.';
|
||||||
fi
|
|
||||||
|
|
||||||
# check to see if youtube-dl is installed
|
|
||||||
if [ ! -f "$HOME/bin/youtube-dl" ]; then
|
|
||||||
echo 'Installing youtube-dl'
|
|
||||||
curl https://yt-dl.org/downloads/2015.07.28/youtube-dl -o ~/bin/youtube-dl
|
|
||||||
chmod a+rx ~/bin/youtube-dl
|
|
||||||
else
|
|
||||||
echo 'Using cached version of youtube-dl.';
|
|
||||||
fi
|
fi
|
Reference in a new issue