diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-streamrip.spec | 654 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 656 insertions, 0 deletions
@@ -0,0 +1 @@ +/streamrip-1.9.7.tar.gz diff --git a/python-streamrip.spec b/python-streamrip.spec new file mode 100644 index 0000000..bf15570 --- /dev/null +++ b/python-streamrip.spec @@ -0,0 +1,654 @@ +%global _empty_manifest_terminate_build 0 +Name: python-streamrip +Version: 1.9.7 +Release: 1 +Summary: A fast, all-in-one music ripper for Qobuz, Deezer, Tidal, and SoundCloud +License: GPL-3.0-only +URL: https://github.com/nathom/streamrip +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b0/1a/c1a822a531a4684a8b904aaff4d0f9b404ce92809b19351c1ca1a9188bd1/streamrip-1.9.7.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-mutagen +Requires: python3-click +Requires: python3-tqdm +Requires: python3-tomlkit +Requires: python3-pathvalidate +Requires: python3-simple-term-menu +Requires: python3-pick +Requires: python3-windows-curses +Requires: python3-Pillow +Requires: python3-deezer-py +Requires: python3-pycryptodomex +Requires: python3-cleo +Requires: python3-appdirs +Requires: python3-m3u8 +Requires: python3-aiofiles +Requires: python3-aiohttp +Requires: python3-aiodns + +%description +# streamrip + +[](https://pepy.tech/project/streamrip) +[](https://github.com/python/black) + +A scriptable stream downloader for Qobuz, Tidal, Deezer and SoundCloud. + + + + +## Features + +- Super fast, as it utilizes concurrent downloads and conversion +- Downloads tracks, albums, playlists, discographies, and labels from Qobuz, Tidal, Deezer, and SoundCloud +- Supports downloads of Spotify and Apple Music playlists through [last.fm](https://www.last.fm) +- Automatically converts files to a preferred format +- Has a database that stores the downloaded tracks' IDs so that repeats are avoided +- Easy to customize with the config file +- Integration with `youtube-dl` + +## Installation + +First, ensure [Python](https://www.python.org/downloads/) (version 3.8 or greater) and [pip](https://pip.pypa.io/en/stable/installing/) are installed. If you are on Windows, install [Microsoft Visual C++ Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/). Then run the following in the command line: + +```bash +pip3 install streamrip --upgrade +``` + +When you type + +```bash +rip +``` + +it should show the main help page. If you have no idea what these mean, or are having other issues installing, check out the [detailed installation instructions](https://github.com/nathom/streamrip/wiki#detailed-installation-instructions). + +If you would like to use `streamrip`'s conversion capabilities, download TIDAL videos, or download music from SoundCloud, install [ffmpeg](https://ffmpeg.org/download.html). To download music from YouTube, install [youtube-dl](https://github.com/ytdl-org/youtube-dl#installation). + +### Streamrip beta + +If you want to get access to the latest and greatest features without waiting for a new release, install +from the `dev` branch with the following command + +```bash +pip3 install git+https://github.com/nathom/streamrip.git@dev +``` + +## Example Usage + +**For Tidal and Qobuz, you NEED a premium subscription.** + +Download an album from Qobuz + +```bash +rip url https://www.qobuz.com/us-en/album/rumours-fleetwood-mac/0603497941032 +``` + +Download multiple albums from Qobuz + +```bash +rip url https://www.qobuz.com/us-en/album/back-in-black-ac-dc/0886444889841 https://www.qobuz.com/us-en/album/blue-train-john-coltrane/0060253764852 +``` + + + +Download the album and convert it to `mp3` + +```bash +rip url --codec mp3 https://open.qobuz.com/album/0060253780968 +``` + + + +To set the maximum quality, use the `--max-quality` option to `0, 1, 2, 3, 4`: + +| Quality ID | Audio Quality | Available Sources | +| ---------- | --------------------- | -------------------------------------------- | +| 0 | 128 kbps MP3 or AAC | Deezer, Tidal, SoundCloud (most of the time) | +| 1 | 320 kbps MP3 or AAC | Deezer, Tidal, Qobuz, SoundCloud (rarely) | +| 2 | 16 bit, 44.1 kHz (CD) | Deezer, Tidal, Qobuz, SoundCloud (rarely) | +| 3 | 24 bit, ≤ 96 kHz | Tidal (MQA), Qobuz, SoundCloud (rarely) | +| 4 | 24 bit, ≤ 192 kHz | Qobuz | + + + +```bash +rip url --max-quality 3 https://tidal.com/browse/album/147569387 +``` + +Search for albums matching `lil uzi vert` on SoundCloud + +```bash +rip search --source soundcloud 'lil uzi vert' +``` + + + +Search for *Rumours* on Tidal, and download it + +```bash +rip search 'fleetwood mac rumours' +``` + +Want to find some new music? Use the `discover` command (only on Qobuz) + +```bash +rip discover --list 'best-sellers' +``` + +Download a last.fm playlist using the lastfm command + +``` +rip lastfm https://www.last.fm/user/nathan3895/playlists/12126195 +``` + +For extreme customization, see the config file + +``` +rip config --open +``` + + + +If you're confused about anything, see the help pages. The main help pages can be accessed by typing `rip` by itself in the command line. The help pages for each command can be accessed with the `-h` flag. For example, to see the help page for the `url` command, type + +``` +rip url -h +``` + + + +## Other information + +For more in-depth information about `streamrip`, see the help pages and the [wiki](https://github.com/nathom/streamrip/wiki/). + + +## Contributions + +All contributions are appreciated! You can help out the project by opening an issue +or by submitting code. + +### Issues + +If you're opening an issue **use the Feature Request or Bug Report templates properly**. This ensures +that I have all of the information necessary to debug the issue. If you do not follow the templates, +**I will silently close the issue** and you'll have to deal with it yourself. + +### Code + +If you're new to Git, follow these steps to open your first Pull Request (PR): + +- Fork this repository +- Clone the new repository +- Commit your changes +- Open a pull request to the `dev` branch + +Please document any functions or obscure lines of code. + +### The Wiki + +To help out `streamrip` users that may be having trouble, consider contributing some information to the wiki. +Nothing is too obvious and everything is appreciated. + +## Acknowledgements + +Thanks to Vitiko98, Sorrow446, and DashLt for their contributions to this project, and the previous projects that made this one possible. + +`streamrip` was inspired by: + +- [qobuz-dl](https://github.com/vitiko98/qobuz-dl) +- [Qo-DL Reborn](https://github.com/badumbass/Qo-DL-Reborn) +- [Tidal-Media-Downloader](https://github.com/yaronzz/Tidal-Media-Downloader) +- [scdl](https://github.com/flyingrub/scdl) + + + +## Disclaimer + + +I will not be responsible for how you use `streamrip`. By using `streamrip`, you agree to the terms and conditions of the Qobuz, Tidal, and Deezer APIs. + +## Donations/Sponsorship + +<a href="https://www.buymeacoffee.com/nathom" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a> + + +Consider contributing some funds [here](https://www.buymeacoffee.com/nathom), which will go towards holding +the premium subscriptions that I need to debug and improve streamrip. Thanks for your support! + + +%package -n python3-streamrip +Summary: A fast, all-in-one music ripper for Qobuz, Deezer, Tidal, and SoundCloud +Provides: python-streamrip +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-streamrip +# streamrip + +[](https://pepy.tech/project/streamrip) +[](https://github.com/python/black) + +A scriptable stream downloader for Qobuz, Tidal, Deezer and SoundCloud. + + + + +## Features + +- Super fast, as it utilizes concurrent downloads and conversion +- Downloads tracks, albums, playlists, discographies, and labels from Qobuz, Tidal, Deezer, and SoundCloud +- Supports downloads of Spotify and Apple Music playlists through [last.fm](https://www.last.fm) +- Automatically converts files to a preferred format +- Has a database that stores the downloaded tracks' IDs so that repeats are avoided +- Easy to customize with the config file +- Integration with `youtube-dl` + +## Installation + +First, ensure [Python](https://www.python.org/downloads/) (version 3.8 or greater) and [pip](https://pip.pypa.io/en/stable/installing/) are installed. If you are on Windows, install [Microsoft Visual C++ Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/). Then run the following in the command line: + +```bash +pip3 install streamrip --upgrade +``` + +When you type + +```bash +rip +``` + +it should show the main help page. If you have no idea what these mean, or are having other issues installing, check out the [detailed installation instructions](https://github.com/nathom/streamrip/wiki#detailed-installation-instructions). + +If you would like to use `streamrip`'s conversion capabilities, download TIDAL videos, or download music from SoundCloud, install [ffmpeg](https://ffmpeg.org/download.html). To download music from YouTube, install [youtube-dl](https://github.com/ytdl-org/youtube-dl#installation). + +### Streamrip beta + +If you want to get access to the latest and greatest features without waiting for a new release, install +from the `dev` branch with the following command + +```bash +pip3 install git+https://github.com/nathom/streamrip.git@dev +``` + +## Example Usage + +**For Tidal and Qobuz, you NEED a premium subscription.** + +Download an album from Qobuz + +```bash +rip url https://www.qobuz.com/us-en/album/rumours-fleetwood-mac/0603497941032 +``` + +Download multiple albums from Qobuz + +```bash +rip url https://www.qobuz.com/us-en/album/back-in-black-ac-dc/0886444889841 https://www.qobuz.com/us-en/album/blue-train-john-coltrane/0060253764852 +``` + + + +Download the album and convert it to `mp3` + +```bash +rip url --codec mp3 https://open.qobuz.com/album/0060253780968 +``` + + + +To set the maximum quality, use the `--max-quality` option to `0, 1, 2, 3, 4`: + +| Quality ID | Audio Quality | Available Sources | +| ---------- | --------------------- | -------------------------------------------- | +| 0 | 128 kbps MP3 or AAC | Deezer, Tidal, SoundCloud (most of the time) | +| 1 | 320 kbps MP3 or AAC | Deezer, Tidal, Qobuz, SoundCloud (rarely) | +| 2 | 16 bit, 44.1 kHz (CD) | Deezer, Tidal, Qobuz, SoundCloud (rarely) | +| 3 | 24 bit, ≤ 96 kHz | Tidal (MQA), Qobuz, SoundCloud (rarely) | +| 4 | 24 bit, ≤ 192 kHz | Qobuz | + + + +```bash +rip url --max-quality 3 https://tidal.com/browse/album/147569387 +``` + +Search for albums matching `lil uzi vert` on SoundCloud + +```bash +rip search --source soundcloud 'lil uzi vert' +``` + + + +Search for *Rumours* on Tidal, and download it + +```bash +rip search 'fleetwood mac rumours' +``` + +Want to find some new music? Use the `discover` command (only on Qobuz) + +```bash +rip discover --list 'best-sellers' +``` + +Download a last.fm playlist using the lastfm command + +``` +rip lastfm https://www.last.fm/user/nathan3895/playlists/12126195 +``` + +For extreme customization, see the config file + +``` +rip config --open +``` + + + +If you're confused about anything, see the help pages. The main help pages can be accessed by typing `rip` by itself in the command line. The help pages for each command can be accessed with the `-h` flag. For example, to see the help page for the `url` command, type + +``` +rip url -h +``` + + + +## Other information + +For more in-depth information about `streamrip`, see the help pages and the [wiki](https://github.com/nathom/streamrip/wiki/). + + +## Contributions + +All contributions are appreciated! You can help out the project by opening an issue +or by submitting code. + +### Issues + +If you're opening an issue **use the Feature Request or Bug Report templates properly**. This ensures +that I have all of the information necessary to debug the issue. If you do not follow the templates, +**I will silently close the issue** and you'll have to deal with it yourself. + +### Code + +If you're new to Git, follow these steps to open your first Pull Request (PR): + +- Fork this repository +- Clone the new repository +- Commit your changes +- Open a pull request to the `dev` branch + +Please document any functions or obscure lines of code. + +### The Wiki + +To help out `streamrip` users that may be having trouble, consider contributing some information to the wiki. +Nothing is too obvious and everything is appreciated. + +## Acknowledgements + +Thanks to Vitiko98, Sorrow446, and DashLt for their contributions to this project, and the previous projects that made this one possible. + +`streamrip` was inspired by: + +- [qobuz-dl](https://github.com/vitiko98/qobuz-dl) +- [Qo-DL Reborn](https://github.com/badumbass/Qo-DL-Reborn) +- [Tidal-Media-Downloader](https://github.com/yaronzz/Tidal-Media-Downloader) +- [scdl](https://github.com/flyingrub/scdl) + + + +## Disclaimer + + +I will not be responsible for how you use `streamrip`. By using `streamrip`, you agree to the terms and conditions of the Qobuz, Tidal, and Deezer APIs. + +## Donations/Sponsorship + +<a href="https://www.buymeacoffee.com/nathom" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a> + + +Consider contributing some funds [here](https://www.buymeacoffee.com/nathom), which will go towards holding +the premium subscriptions that I need to debug and improve streamrip. Thanks for your support! + + +%package help +Summary: Development documents and examples for streamrip +Provides: python3-streamrip-doc +%description help +# streamrip + +[](https://pepy.tech/project/streamrip) +[](https://github.com/python/black) + +A scriptable stream downloader for Qobuz, Tidal, Deezer and SoundCloud. + + + + +## Features + +- Super fast, as it utilizes concurrent downloads and conversion +- Downloads tracks, albums, playlists, discographies, and labels from Qobuz, Tidal, Deezer, and SoundCloud +- Supports downloads of Spotify and Apple Music playlists through [last.fm](https://www.last.fm) +- Automatically converts files to a preferred format +- Has a database that stores the downloaded tracks' IDs so that repeats are avoided +- Easy to customize with the config file +- Integration with `youtube-dl` + +## Installation + +First, ensure [Python](https://www.python.org/downloads/) (version 3.8 or greater) and [pip](https://pip.pypa.io/en/stable/installing/) are installed. If you are on Windows, install [Microsoft Visual C++ Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/). Then run the following in the command line: + +```bash +pip3 install streamrip --upgrade +``` + +When you type + +```bash +rip +``` + +it should show the main help page. If you have no idea what these mean, or are having other issues installing, check out the [detailed installation instructions](https://github.com/nathom/streamrip/wiki#detailed-installation-instructions). + +If you would like to use `streamrip`'s conversion capabilities, download TIDAL videos, or download music from SoundCloud, install [ffmpeg](https://ffmpeg.org/download.html). To download music from YouTube, install [youtube-dl](https://github.com/ytdl-org/youtube-dl#installation). + +### Streamrip beta + +If you want to get access to the latest and greatest features without waiting for a new release, install +from the `dev` branch with the following command + +```bash +pip3 install git+https://github.com/nathom/streamrip.git@dev +``` + +## Example Usage + +**For Tidal and Qobuz, you NEED a premium subscription.** + +Download an album from Qobuz + +```bash +rip url https://www.qobuz.com/us-en/album/rumours-fleetwood-mac/0603497941032 +``` + +Download multiple albums from Qobuz + +```bash +rip url https://www.qobuz.com/us-en/album/back-in-black-ac-dc/0886444889841 https://www.qobuz.com/us-en/album/blue-train-john-coltrane/0060253764852 +``` + + + +Download the album and convert it to `mp3` + +```bash +rip url --codec mp3 https://open.qobuz.com/album/0060253780968 +``` + + + +To set the maximum quality, use the `--max-quality` option to `0, 1, 2, 3, 4`: + +| Quality ID | Audio Quality | Available Sources | +| ---------- | --------------------- | -------------------------------------------- | +| 0 | 128 kbps MP3 or AAC | Deezer, Tidal, SoundCloud (most of the time) | +| 1 | 320 kbps MP3 or AAC | Deezer, Tidal, Qobuz, SoundCloud (rarely) | +| 2 | 16 bit, 44.1 kHz (CD) | Deezer, Tidal, Qobuz, SoundCloud (rarely) | +| 3 | 24 bit, ≤ 96 kHz | Tidal (MQA), Qobuz, SoundCloud (rarely) | +| 4 | 24 bit, ≤ 192 kHz | Qobuz | + + + +```bash +rip url --max-quality 3 https://tidal.com/browse/album/147569387 +``` + +Search for albums matching `lil uzi vert` on SoundCloud + +```bash +rip search --source soundcloud 'lil uzi vert' +``` + + + +Search for *Rumours* on Tidal, and download it + +```bash +rip search 'fleetwood mac rumours' +``` + +Want to find some new music? Use the `discover` command (only on Qobuz) + +```bash +rip discover --list 'best-sellers' +``` + +Download a last.fm playlist using the lastfm command + +``` +rip lastfm https://www.last.fm/user/nathan3895/playlists/12126195 +``` + +For extreme customization, see the config file + +``` +rip config --open +``` + + + +If you're confused about anything, see the help pages. The main help pages can be accessed by typing `rip` by itself in the command line. The help pages for each command can be accessed with the `-h` flag. For example, to see the help page for the `url` command, type + +``` +rip url -h +``` + + + +## Other information + +For more in-depth information about `streamrip`, see the help pages and the [wiki](https://github.com/nathom/streamrip/wiki/). + + +## Contributions + +All contributions are appreciated! You can help out the project by opening an issue +or by submitting code. + +### Issues + +If you're opening an issue **use the Feature Request or Bug Report templates properly**. This ensures +that I have all of the information necessary to debug the issue. If you do not follow the templates, +**I will silently close the issue** and you'll have to deal with it yourself. + +### Code + +If you're new to Git, follow these steps to open your first Pull Request (PR): + +- Fork this repository +- Clone the new repository +- Commit your changes +- Open a pull request to the `dev` branch + +Please document any functions or obscure lines of code. + +### The Wiki + +To help out `streamrip` users that may be having trouble, consider contributing some information to the wiki. +Nothing is too obvious and everything is appreciated. + +## Acknowledgements + +Thanks to Vitiko98, Sorrow446, and DashLt for their contributions to this project, and the previous projects that made this one possible. + +`streamrip` was inspired by: + +- [qobuz-dl](https://github.com/vitiko98/qobuz-dl) +- [Qo-DL Reborn](https://github.com/badumbass/Qo-DL-Reborn) +- [Tidal-Media-Downloader](https://github.com/yaronzz/Tidal-Media-Downloader) +- [scdl](https://github.com/flyingrub/scdl) + + + +## Disclaimer + + +I will not be responsible for how you use `streamrip`. By using `streamrip`, you agree to the terms and conditions of the Qobuz, Tidal, and Deezer APIs. + +## Donations/Sponsorship + +<a href="https://www.buymeacoffee.com/nathom" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a> + + +Consider contributing some funds [here](https://www.buymeacoffee.com/nathom), which will go towards holding +the premium subscriptions that I need to debug and improve streamrip. Thanks for your support! + + +%prep +%autosetup -n streamrip-1.9.7 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-streamrip -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.9.7-1 +- Package Spec generated @@ -0,0 +1 @@ +8e09d8e4aac7c69251c108f8b854de96 streamrip-1.9.7.tar.gz |
