QNAP [ sdcl (CLI) ] [ 2.7.1 ] This script is able to download music from SoundCloud and set id3tag to the downloaded music

  • Vague de SPAM

    Suite à une vague de spam sur le forum, les inscriptions sont temporairement limitées.

    Après votre inscription, un membre de l'équipe devra valider votre compte avant qu'il ne soit activé. Nous sommes désolés pour la gêne occasionnée et vous remercions de votre patience.

QoolBox

Représentant QNAP
2 Janvier 2014
10 748
185
173
51
France
www.qnap.com
Professionnel
Oui
qpkg_icon_80.gif


Source : https://github.com/flyingrub/scdl

Download :

Apache81 :
https://www.qnapclub.eu/fr/qpkg/1283

Configuration​

There is a configuration file left in ~/.config/scdl/scdl.cfg

Examples:​

Code:
# Download track & repost of the user QUANTA
scdl -l [MEDIA=soundcloud]quanta-uk[/MEDIA] -a

# Download likes of the user Blastoyz
scdl -l [MEDIA=soundcloud]kobiblastoyz[/MEDIA] -f

# Download one track
scdl -l [MEDIA=soundcloud]jumpstreetpsy/low-extender[/MEDIA]

# Download one playlist
scdl -l [MEDIA=soundcloud]pandadub/sets/the-lost-ship[/MEDIA]

# Download only new tracks from a playlist
scdl -l [MEDIA=soundcloud]pandadub/sets/the-lost-ship[/MEDIA] --download-archive archive.txt -c

# Sync playlist
scdl -l [MEDIA=soundcloud]pandadub/sets/the-lost-ship[/MEDIA] --sync archive.txt

# Download your likes (with authentification token)
scdl me -f

Options:​

Code:
-h --help                       Show this screen
--version                       Show version
-l URL can be track/playlist/user 
-n [maxtracks] Download the n last tracks of a playlist according to the creation date 
-s Download the stream of a user (token needed)
 -a Download all tracks of user (including reposts)
 -t Download all uploads of a user (no reposts) 
-f Download all favorites of a user 
-C Download all commented by a user 
-p Download all playlists of a user 
-r Download all reposts of user 
-c Continue if a downloaded file already exists 
--force-metadata This will set metadata on already downloaded track
 -o [offset] Begin with a custom offset 
--addtimestamp Add track creation timestamp to filename, which allows for chronological sorting
 --addtofile Add artist to filename if missing 
--debug Set log level to DEBUG
 --download-archive [file] Keep track of track IDs in an archive file, and skip already-downloaded files 
--error Set log level to ERROR
 --extract-artist Set artist tag from title instead of username
 --hide-progress Hide the wget progress bar
 --hidewarnings Hide Warnings. (use with precaution) 
--max-size [max-size] Skip tracks larger than size (k/m/g) 
--min-size [min-size] Skip tracks smaller than size (k/m/g)
 --no-playlist-folder Download playlist tracks into main directory, instead of making a playlist subfolder 
--onlymp3 Download only the streamable mp3 file, even if track has a Downloadable file
 --path [path] Use a custom path for downloaded files 
--remove Remove any files not downloaded from execution
 --sync [file] Compare an archive file to a playlist and downloads/removes any changed tracks
 --flac Convert original files to .flac 
--no-album-tag On some player track get the same cover art if from the same album, this prevent it 
--original-art Download original cover art 
--original-name Do not change name of original file downloads 
--no-original Do not download original file; only mp3 or m4a 
--only-original Only download songs with original file available
 --name-format [format] Specify the downloaded file name format 
--playlist-name-format [format] Specify the downloaded file name format, if it is being downloaded as part of a playlist
 --client-id [id] Specify the client_id to use 
--auth-token [token] Specify the auth token to use 
--overwrite Overwrite file if it already exists 
--strict-playlist Abort playlist downloading if one track fails to download

Features​

  • Automatically detect the type of link provided
  • Download all songs from a user
  • Download all songs and reposts from a user
  • Download all songs from one playlist
  • Download all songs from all playlists from a user
  • Download all songs from a user's favorites
  • Download only new tracks from a list (playlist, favorites, etc.)
  • Sync Playlist
  • Set the tags with mutagen (Title / Artist / Album / Artwork)
  • Create playlist files when downloading a playlist


License​

GPL v2, original author flyingrub
 
Dernière édition:
Im getting an error

scdl -l illo-klass-remix

Traceback (most recent call last):
File "/opt/Apache81/lib/python3.9/pathlib.py", line 1323, in mkdir
self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/share/CACHEDEV1_DATA/. qpkg/scdl81/.config/scdl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/share/CACHEDEV1_DATA/.qpkg/scdl81/bin/scdl", line 8, in <module>
sys.exit(main())
File "/opt/scdl81/lib/python3.9/site-packages/scdl/scdl.py", line 148, in main
config = get_config(config_file)
File "/opt/scdl81/lib/python3.9/site-packages/scdl/scdl.py", line 290, in get_ config
config_file.parent.mkdir(parents=True, exist_ok=True)
File "/opt/Apache81/lib/python3.9/pathlib.py", line 1327, in mkdir
self.parent.mkdir(parents=True, exist_ok=True)
File "/opt/Apache81/lib/python3.9/pathlib.py", line 1323, in mkdir
self._accessor.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/share/CACHEDEV1_DATA/.qpkg/scdl 81/.config'