Install streamrip in Termux

Install streamrip in Termux

DJDoubleD

The following is a guide on how to install streamrip in Termux without any errors or effort, with just one quick command.

Table of Contents

Preparation

Install a fresh instance of Termux v0.118.1 or higher, by either:

Install latest version of streamrip

Open Termux and copy-paste the following command in the prompt and press <enter>:

termux-setup-storage && termux-change-repo && pkg update -y && pkg upgrade -y && pkg install git python clang libjpeg-turbo ffmpeg zlib -y && pip install setuptools && cd /sdcard && git clone https://github.com/saghul/pycares && cd pycares && python setup.py install && cd /sdcard && rm -rf pycares && pip3 install streamrip && rip config path && cd ~ && clear

After entering the above command, android will ask you to grant Termux storage permissions. Grant the permissions to continue.

Next Termux will ask you which type of mirror(s) for the repositories you want to use:

Choose Mirror Type

You can choose what you prefer. For this guide, just select the default option by pressing the "OK" button.

Next Termux will ask you which mirror group you want to use:

Choose Mirror Group

Just press "OK" again to continue.

During the installation, you will be prompted what to do with files that are already on your system but also have a version provided by the maintainer of a package that is being installed:

Installation in progress

Each time the installation stops with a prompt as shown above, just press enter (default) and the installation will continue.

Configuration

After the installation is completed, you can open the streamrip configuration file with the following command:

nano ~/.config/streamrip/config.toml

This will allow you to configure your preferences using the nano text editor:

config.toml example

Please note that the nano editor displays an area at the bottom with commands you can use and dedicated buttons:

Nano Editor Button Area

Use the arrow buttons in this button area to navigate the cursor in the nano editor.

In order to have streamrip write the downloaded files to a location that is easily accessible using your phone's browser and/or media player, it is recommended to change the download folder to something like /sdcard/Music/StreamripDownloads/.

Next fill out your credentials for the streaming services you want to use in their dedicated sections of the config file.

In order to exit the nano editor and save the config file, you can just press "CTRL-X" followed by "Y" and "ENTER" ("Y" = yes to the question to save the file), as indicated in the image below:

Exit & save config.toml file in nano editor

Downloading

Now streamrip is installed, set-up and ready to download. For full usage instructions and configuration possibilities, check out the streamrip ReadMe & Wiki.

Qobuz Download In Progress
Download finished

Install dev branch of streamrip (optional)

Sometimes features get published to the dev branch for testing before they are deemed stable enough to merge into the main branch.
If you want to use these features, follow the guide from the beginning but just replace the installation command with the following to install the streamrip dev branch:

termux-setup-storage && termux-change-repo && pkg update -y && pkg upgrade -y && pkg install git python clang libjpeg-turbo ffmpeg zlib -y && pip install setuptools && cd /sdcard && git clone https://github.com/saghul/pycares && cd pycares && python setup.py install && cd /sdcard && rm -rf pycares && pip3 install git+https://github.com/nathom/streamrip.git@dev && rip config path && cd ~ && clear

Troubleshooting

If, for some reason, you are using a version of Termux below v0.118.1, the
termux-setup-storage command might not work. In this case, depending on your version of android, you'll need to give storage permissions to Termux after it's installation.

Storage permissions are given in the following way.

  • Android < 11Android Settings -> Apps -> Termux -> Permissions -> Storage
  • Android >= 11Android Settings -> Apps -> Termux -> Permissions -> Files and media -> Allow management of all files
  • Android >= 13Android Settings -> Apps -> (Advanced ->) Special app access -> All files access -> Termux

Credits

This guide was compiled & tested by DJDoubleD based on the original instructions provided by TheKVT in the Firehawk52 Official Community.

Report Page