Skip to content

Latest commit

 

History

History
172 lines (123 loc) · 4.44 KB

OS-install-instructions.md

File metadata and controls

172 lines (123 loc) · 4.44 KB

OS-specific installation instructions for yle-dl

Debian 10 (Buster)/Ubuntu 17.10 and later

# If you have installed a previous version globally (without the
# --user switch in the pip install command), remove the globally
# installed version first:
sudo pip uninstall yle-dl

sudo apt-get install wget ffmpeg python3-dev python3-setuptools \
    python3-pip python3-requests python3-lxml python3-xattr python3-psutil
pip3 install --user --upgrade yle-dl

# If you get "command not found" message when you try to run yle-dl, append
# the installation location onto your search path with the following command:
#
# echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >> ~/.bashrc && source ~/.bashrc

Installing from source code on Debian 10/Ubuntu 17.10

# If you have installed a previous version globally (without the
# --user switch in the pip install command), remove the globally
# installed version first:
sudo pip uninstall yle-dl

sudo apt-get install git wget ffmpeg python3-dev python3-setuptools \
    python3-pip python3-requests python3-lxml python3-xattr python3-psutil
git clone https://github.com/aajanki/yle-dl.git
cd yle-dl
pip3 install --user .

Debian 9 (Stretch)/Ubuntu 16.04

# If you have installed a previous version globally (without the
# --user switch in the pip install command), remove the globally
# installed version first:
sudo pip uninstall yle-dl

sudo apt-get install wget ffmpeg python3-dev python3-setuptools \
    python3-pip python3-requests python3-lxml
pip3 install --user --upgrade yle-dl

# If you get "command not found" message when you try to run yle-dl, append
# the installation location onto your search path with the following command:
#
# echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >> ~/.bashrc && source ~/.bashrc

(You may get prompted to upgrade pip. However, it is not necessary to upgrade pip for installing yle-dl.)

Installing from source code on Debian 9/Ubuntu 16.04

# If you have installed a previous version globally (without the
# --user switch in the pip install command), remove the globally
# installed version first:
sudo pip uninstall yle-dl

sudo apt-get install git wget ffmpeg python3-dev python3-setuptools \
    python3-pip python3-requests python3-lxml
git clone https://github.com/aajanki/yle-dl.git
cd yle-dl
pip3 install --user .

Gentoo

emerge -av yle-dl

OpenSUSE Tumbleweed

# Install non-free codecs
sudo zypper addrepo -f http://packman.inode.at/suse/openSUSE_Tumbleweed/ packman
sudo zypper install --allow-vendor-change ffmpeg-4
sudo zypper dup --allow-vendor-change --from http://packman.inode.at/suse/openSUSE_Tumbleweed/

# Dependencies
sudo zypper install python3-pip python3-requests python3-lxml wget

# Install the yle-dl
pip3 install --user --upgrade yle-dl

Non-free codecs can be installed in a similar way on OpenSUSE Leap 15.2 except that there are no packages available for ffmpeg-4, only for ffmpeg-3. Older ffmpeg means that subtitles will not be downloaded correctly.

Mac OS X

First, install Homebrew. Next, run the following commands:

brew install python
brew install wget
brew install ffmpeg
brew install yle-dl

Windows 10

Python

Download the latest Python 3 release from https://www.python.org/downloads/windows/ and install it in C:\somepath\Python.

Append the following paths to the PATH environment variable in Control Panel > System and security > System > Advanced system settings > Environment Variables...:

C:\somepath\Python\Python36
C:\somepath\Python\Python37
C:\somepath\Python\Python36\Scripts
C:\somepath\Python\Python37\Scripts
%USERPROFILE%\AppData\Roaming\Python\Python36\Scripts
%USERPROFILE%\AppData\Roaming\Python\Python37\Scripts

ffmpeg

Download the binary from https://ffmpeg.org/download.html#build-windows. Select the latest release build (not a nightly git build), Windows 64-bit, Static. Extract the zip in C:\somepath\ffmpeg.

Append C:\somepath\ffmpeg\bin to the PATH environment variable.

wget

Download the latest wget.exe from https://eternallybored.org/misc/wget and copy it to C:\somepath\wget.

Append C:\somepath\wget to the PATH environment variable.

yle-dl

pip install --user --upgrade yle-dl

Usage:

yle-dl --vfat https://areena.yle.fi/...

Android

Install Termux.

Run on the Termux terminal:

pkg install python make clang libgmp wget ffmpeg libxml2 libxml2-utils libxslt
pip install lxml yle-dl