summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 02:03:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 02:03:05 +0000
commitc77fe72c6fb13d663bb567055b2b834edd9e345e (patch)
treeae95042d78e88fa16936e5191537498343e285f2
parent13d088ff4daa2756af774c593f6de8f32a79227f (diff)
automatic import of python-deezloader
-rw-r--r--.gitignore1
-rw-r--r--python-deezloader.spec669
-rw-r--r--sources1
3 files changed, 671 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..527fb43 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/deezloader-2022.3.5.tar.gz
diff --git a/python-deezloader.spec b/python-deezloader.spec
new file mode 100644
index 0000000..a96047e
--- /dev/null
+++ b/python-deezloader.spec
@@ -0,0 +1,669 @@
+%global _empty_manifest_terminate_build 0
+Name: python-deezloader
+Version: 2022.3.5
+Release: 1
+Summary: Downloads songs, albums or playlists from deezer
+License: CC BY-NC-SA 4.0
+URL: https://github.com/An0nimia/deezloader
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/62/19/0f485cb511b853db540f206698ca02837202e811a0ee042f4763925bdfc6/deezloader-2022.3.5.tar.gz
+BuildArch: noarch
+
+
+%description
+# deezloader
+
+This project has been created to download songs, albums or playlists with Spotify or Deezer link from Deezer.
+
+# Disclaimer
+
+- I am not responsible for the usage of this program by other people.
+- I do not recommend you doing this illegally or against Deezer's terms of service.
+- This project is licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
+
+
+* ### PYTHON VERSION SUPPORTED ###
+ ![Python >= 3.9](https://img.shields.io/badge/python-v%3E=3.9-blue)
+
+* ### OS Supported ###
+ ![Linux Support](https://img.shields.io/badge/Linux-Support-brightgreen.svg)
+ ![macOS Support](https://img.shields.io/badge/macOS-Support-brightgreen.svg)
+ ![Windows Support](https://img.shields.io/badge/Windows-Support-brightgreen.svg)
+
+* ### Installation ###
+```bash
+pip3 install deezloader
+```
+
+# SETTING
+ [deez_login]
+ mail = #YOUR DEEZER EMAIL
+ password = #YOUR DEEZER PASSWORD
+ token = #YOUR ARL TOKEN GOT FROM DEEZER
+
+### Setting disclaimer
+- Write that content inside .deez_settings.ini file for using deez-dw.py
+
+# API Avalaible
+
+Finally **deez-web.py** avalaible ;)
+```bash
+deez-web.py
+```
+
+### API disclaimer
+- Open your browser at http://127.0.0.1:8000/docs
+
+# CLI interface
+
+Finally **deez-dw.py** avalaible ;)
+```bash
+deez-dw.py -h
+```
+ usage: deez-dw.py [-h] [-l LINK] [-s SONG] [-a ARTIST] [-o OUTPUT]
+ [-q {FLAC,MP3_320,MP3_128}] [-rq] [-rd]
+ [-g] [-z] [-sa {0,1,2}]
+
+## OPTIONS
+ -h, --help show this help message and exit
+ -l LINK, --link LINK Deezer or Spotify link for download
+ -s SONG, --song SONG song name
+ -a ARTIST, --artist ARTIST
+ artist song
+ -o OUTPUT, --output OUTPUT
+ Output folder
+ -q {FLAC,MP3_320,MP3_128}, --quality {FLAC,MP3_320,MP3_128}
+ -rq, --recursive_quality
+ If choosen quality doesn't exist download with best possible
+ quality (True or False)
+ -rd, --recursive_download
+ If the song has already downloaded skip (True or False)
+ -g, --not_gui Show the little not_gui (True or False)
+ -z, --zip If is an album or playlist link create a zip archive (True or
+ False)
+ -sa {0,1,2}, --save {0,1,2}
+
+# Library
+
+### Initialize
+
+```python
+from deezloader import Login
+
+# if you want login with arl, IT EXPIRES
+downloa = Login(arl = my_arl_token)
+# if you want to login through your email and password, SHOULD LAST FOREVER
+downloa = Login(
+ email = my_deezer_email,
+ password = my_deezer_password
+)
+```
+
+### Download song
+
+Download track by Spotify link
+
+```python
+downloa.download_trackspo(
+ #YOUR SPOTIFY TRACK LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download track by Deezer link
+```python
+downloa.download_trackdee(
+ #YOUR DEEZER TRACK LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+### Download album
+Download album by Spotify link
+```python
+downloa.download_albumspo(
+ #YOUR SPOTIFY ALBUM LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download album from Deezer link
+```python
+downloa.download_albumdee(
+ #YOUR DEEZER ALBUM LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+### Download playlist
+
+Download playlist by Spotify link
+```python
+downloa.download_playlistspo(
+ #YOUR SPOTIFY PLAYLIST LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download playlist from Deezer link
+```python
+downloa.download_playlistdee(
+ #YOUR DEEZER PLAYLIST LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+```
+
+### Download name
+
+Download by name
+```python
+downloa.download_name(
+ artist = #ARTIST NAME,
+ song = #ARTIST SONG NAME,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+# DONATION
+
+IF YOU ARE POOR DON'T DONATE I AM ALSO POOR, IF YOU ARE RICH JUST PRESS [HERE](https://www.paypal.com/paypalme/an0nimia) THANKS YOU :)
+
+# HEY YOUUUU
+
+Too Lazy to finish the shitty documentation with VSCode you should be able discover the other params, methods and propieties I will try to do something more professional, MAYBE :)
+
+
+
+%package -n python3-deezloader
+Summary: Downloads songs, albums or playlists from deezer
+Provides: python-deezloader
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-deezloader
+# deezloader
+
+This project has been created to download songs, albums or playlists with Spotify or Deezer link from Deezer.
+
+# Disclaimer
+
+- I am not responsible for the usage of this program by other people.
+- I do not recommend you doing this illegally or against Deezer's terms of service.
+- This project is licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
+
+
+* ### PYTHON VERSION SUPPORTED ###
+ ![Python >= 3.9](https://img.shields.io/badge/python-v%3E=3.9-blue)
+
+* ### OS Supported ###
+ ![Linux Support](https://img.shields.io/badge/Linux-Support-brightgreen.svg)
+ ![macOS Support](https://img.shields.io/badge/macOS-Support-brightgreen.svg)
+ ![Windows Support](https://img.shields.io/badge/Windows-Support-brightgreen.svg)
+
+* ### Installation ###
+```bash
+pip3 install deezloader
+```
+
+# SETTING
+ [deez_login]
+ mail = #YOUR DEEZER EMAIL
+ password = #YOUR DEEZER PASSWORD
+ token = #YOUR ARL TOKEN GOT FROM DEEZER
+
+### Setting disclaimer
+- Write that content inside .deez_settings.ini file for using deez-dw.py
+
+# API Avalaible
+
+Finally **deez-web.py** avalaible ;)
+```bash
+deez-web.py
+```
+
+### API disclaimer
+- Open your browser at http://127.0.0.1:8000/docs
+
+# CLI interface
+
+Finally **deez-dw.py** avalaible ;)
+```bash
+deez-dw.py -h
+```
+ usage: deez-dw.py [-h] [-l LINK] [-s SONG] [-a ARTIST] [-o OUTPUT]
+ [-q {FLAC,MP3_320,MP3_128}] [-rq] [-rd]
+ [-g] [-z] [-sa {0,1,2}]
+
+## OPTIONS
+ -h, --help show this help message and exit
+ -l LINK, --link LINK Deezer or Spotify link for download
+ -s SONG, --song SONG song name
+ -a ARTIST, --artist ARTIST
+ artist song
+ -o OUTPUT, --output OUTPUT
+ Output folder
+ -q {FLAC,MP3_320,MP3_128}, --quality {FLAC,MP3_320,MP3_128}
+ -rq, --recursive_quality
+ If choosen quality doesn't exist download with best possible
+ quality (True or False)
+ -rd, --recursive_download
+ If the song has already downloaded skip (True or False)
+ -g, --not_gui Show the little not_gui (True or False)
+ -z, --zip If is an album or playlist link create a zip archive (True or
+ False)
+ -sa {0,1,2}, --save {0,1,2}
+
+# Library
+
+### Initialize
+
+```python
+from deezloader import Login
+
+# if you want login with arl, IT EXPIRES
+downloa = Login(arl = my_arl_token)
+# if you want to login through your email and password, SHOULD LAST FOREVER
+downloa = Login(
+ email = my_deezer_email,
+ password = my_deezer_password
+)
+```
+
+### Download song
+
+Download track by Spotify link
+
+```python
+downloa.download_trackspo(
+ #YOUR SPOTIFY TRACK LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download track by Deezer link
+```python
+downloa.download_trackdee(
+ #YOUR DEEZER TRACK LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+### Download album
+Download album by Spotify link
+```python
+downloa.download_albumspo(
+ #YOUR SPOTIFY ALBUM LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download album from Deezer link
+```python
+downloa.download_albumdee(
+ #YOUR DEEZER ALBUM LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+### Download playlist
+
+Download playlist by Spotify link
+```python
+downloa.download_playlistspo(
+ #YOUR SPOTIFY PLAYLIST LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download playlist from Deezer link
+```python
+downloa.download_playlistdee(
+ #YOUR DEEZER PLAYLIST LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+```
+
+### Download name
+
+Download by name
+```python
+downloa.download_name(
+ artist = #ARTIST NAME,
+ song = #ARTIST SONG NAME,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+# DONATION
+
+IF YOU ARE POOR DON'T DONATE I AM ALSO POOR, IF YOU ARE RICH JUST PRESS [HERE](https://www.paypal.com/paypalme/an0nimia) THANKS YOU :)
+
+# HEY YOUUUU
+
+Too Lazy to finish the shitty documentation with VSCode you should be able discover the other params, methods and propieties I will try to do something more professional, MAYBE :)
+
+
+
+%package help
+Summary: Development documents and examples for deezloader
+Provides: python3-deezloader-doc
+%description help
+# deezloader
+
+This project has been created to download songs, albums or playlists with Spotify or Deezer link from Deezer.
+
+# Disclaimer
+
+- I am not responsible for the usage of this program by other people.
+- I do not recommend you doing this illegally or against Deezer's terms of service.
+- This project is licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
+
+
+* ### PYTHON VERSION SUPPORTED ###
+ ![Python >= 3.9](https://img.shields.io/badge/python-v%3E=3.9-blue)
+
+* ### OS Supported ###
+ ![Linux Support](https://img.shields.io/badge/Linux-Support-brightgreen.svg)
+ ![macOS Support](https://img.shields.io/badge/macOS-Support-brightgreen.svg)
+ ![Windows Support](https://img.shields.io/badge/Windows-Support-brightgreen.svg)
+
+* ### Installation ###
+```bash
+pip3 install deezloader
+```
+
+# SETTING
+ [deez_login]
+ mail = #YOUR DEEZER EMAIL
+ password = #YOUR DEEZER PASSWORD
+ token = #YOUR ARL TOKEN GOT FROM DEEZER
+
+### Setting disclaimer
+- Write that content inside .deez_settings.ini file for using deez-dw.py
+
+# API Avalaible
+
+Finally **deez-web.py** avalaible ;)
+```bash
+deez-web.py
+```
+
+### API disclaimer
+- Open your browser at http://127.0.0.1:8000/docs
+
+# CLI interface
+
+Finally **deez-dw.py** avalaible ;)
+```bash
+deez-dw.py -h
+```
+ usage: deez-dw.py [-h] [-l LINK] [-s SONG] [-a ARTIST] [-o OUTPUT]
+ [-q {FLAC,MP3_320,MP3_128}] [-rq] [-rd]
+ [-g] [-z] [-sa {0,1,2}]
+
+## OPTIONS
+ -h, --help show this help message and exit
+ -l LINK, --link LINK Deezer or Spotify link for download
+ -s SONG, --song SONG song name
+ -a ARTIST, --artist ARTIST
+ artist song
+ -o OUTPUT, --output OUTPUT
+ Output folder
+ -q {FLAC,MP3_320,MP3_128}, --quality {FLAC,MP3_320,MP3_128}
+ -rq, --recursive_quality
+ If choosen quality doesn't exist download with best possible
+ quality (True or False)
+ -rd, --recursive_download
+ If the song has already downloaded skip (True or False)
+ -g, --not_gui Show the little not_gui (True or False)
+ -z, --zip If is an album or playlist link create a zip archive (True or
+ False)
+ -sa {0,1,2}, --save {0,1,2}
+
+# Library
+
+### Initialize
+
+```python
+from deezloader import Login
+
+# if you want login with arl, IT EXPIRES
+downloa = Login(arl = my_arl_token)
+# if you want to login through your email and password, SHOULD LAST FOREVER
+downloa = Login(
+ email = my_deezer_email,
+ password = my_deezer_password
+)
+```
+
+### Download song
+
+Download track by Spotify link
+
+```python
+downloa.download_trackspo(
+ #YOUR SPOTIFY TRACK LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download track by Deezer link
+```python
+downloa.download_trackdee(
+ #YOUR DEEZER TRACK LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+### Download album
+Download album by Spotify link
+```python
+downloa.download_albumspo(
+ #YOUR SPOTIFY ALBUM LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download album from Deezer link
+```python
+downloa.download_albumdee(
+ #YOUR DEEZER ALBUM LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+### Download playlist
+
+Download playlist by Spotify link
+```python
+downloa.download_playlistspo(
+ #YOUR SPOTIFY PLAYLIST LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+Download playlist from Deezer link
+```python
+downloa.download_playlistdee(
+ #YOUR DEEZER PLAYLIST LINK,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ make_zip = #True or False,
+ method_save = #choose between 0, 1 or 2
+```
+
+### Download name
+
+Download by name
+```python
+downloa.download_name(
+ artist = #ARTIST NAME,
+ song = #ARTIST SONG NAME,
+ output_dir = #The output dir for the download,
+ quality_download = #Choose between FLAC, MP3_320, MP3_128,
+ recursive_quality = #True or False,
+ recursive_download = #True or False,
+ not_interface = #True or False,
+ method_save = #choose between 0, 1 or 2
+)
+```
+
+# DONATION
+
+IF YOU ARE POOR DON'T DONATE I AM ALSO POOR, IF YOU ARE RICH JUST PRESS [HERE](https://www.paypal.com/paypalme/an0nimia) THANKS YOU :)
+
+# HEY YOUUUU
+
+Too Lazy to finish the shitty documentation with VSCode you should be able discover the other params, methods and propieties I will try to do something more professional, MAYBE :)
+
+
+
+%prep
+%autosetup -n deezloader-2022.3.5
+
+%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-deezloader -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2022.3.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2b2de14
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5828471e4134b2e50ebbccf1521ac434 deezloader-2022.3.5.tar.gz