GithubHelp home page GithubHelp logo

artyshko / smd Goto Github PK

View Code? Open in Web Editor NEW
1.3K 68.0 241.0 162.74 MB

Spotify Music Downloader

License: MIT License

Python 33.43% JavaScript 26.13% Ruby 0.05% CSS 7.66% HTML 29.07% Shell 0.03% Less 1.73% SCSS 1.90%
spotify spotify-playlist spotify-api spotipy music music-downloader high-quality-music freemusic telegram-bot bot

smd's Introduction

Spotify Music Downloader (SMD) Desktop | Telegram

NEW DEV VERSION HERE (As the bot is down, you can use this CLI version)

The SMD project is temporarily frozen due to having problems with a DMCA.

made-with-python Open Source Love svg1 License: MIT GitHub repo size in bytes GitHub Release Date GitHub issues Beerpay Beerpay

Desktop version GUI

.

Desktop version CLI

Telegram version






Manual (Desktop version CLI)

./main.py [argument][value] - startup with arguments

 Arguments:

        -h,  --help                  Print a help message and exit.
        -p,  --path                  Set another directory.

        -ss, --spotify-song          Spotify song link or URI.
        -sa, --spotify-album         Spotify album link or URI.
        -sp, --spotify-playlist      Spotify playlist URI.

        -ds, --deezer-song           Deezer song link.
        -da, --deezer-album          Deezer album link.
        -dp, --deezer-playlist       Deezer playlist link.

        -ym, --youtube-music         YouTube Music link.
        -yv, --youtube-video         YouTube Video link.

        -a,  --apple                 Apple Music link.
        -q,  --query                 Search query.

Installation

git clone https://github.com/artyshko/smd.git

First you have to install all dependencies

pip3 install -r requirements.txt
pip3 install PyQtWebEngine
sudo apt-get install python3-pyqt5.qtwebengine

Make file executable

chmod +x main.py
./main.py

Or use

python3 main.py

Spotify

Song:

./main.py -ss "https://open.spotify.com/track/2QoDAlMnML5haTXvYRS86X?si=eMGX4dlwQd-7dyiG6OmUHQ"

Album:

./main.py -sa "https://open.spotify.com/album/79dL7FLiJFOO0EoehUHQBv?si=lDnHRa2BR_uFUOnUOZPbUQ"

Playlist:

./main.py -sp "https://open.spotify.com/playlist/37i9dQZF1DXcRXFNfZr7Tp?si=Yd3IJQ9ATWOdFulNa7ax5g"

Deezer

Song:

./main.py -ds "https://www.deezer.com/track/3787855"

Album:

./main.py -da "https://www.deezer.com/album/1695172"

Playlist:

./main.py -dp "https://www.deezer.com/playlist/1306931615"

YouTube Music

Song:

./main.py -ym "https://music.youtube.com/watch?v=HnXzzTIFu_U&list=RDAMVMHnXzzTIFu_U"

YouTube Video

Video:

./main.py -yv "https://www.youtube.com/watch?v=JHi-WGFGWek"

Apple Music

Example:

./main.py -a "https://itunes.apple.com/us/album/i-wanna-be-yours/663097964?i=663098065"

Query mode

Example:

./main.py -q "The XX - Intro"

Choose another directory

Example:

./main.py -q "The XX - Intro" -p ~/Music

./main.py -ss "https://open.spotify.com/track/2QoDAlMnML5haTXvYRS86X" -p ~/Desktop/Music/New

Desktop version GUI









smd's People

Contributors

artyshko avatar comerciainfo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smd's Issues

Everything installed fine. App freezes and quits on startup!

My system info: Manjaro KDE 18.1.0
Everything is updated on the system.
I followed the instructions to install, all the requirements downloaded but failed to install saying that I don't have permission to install and I must use --user.
Then I executed:

pip3 install --user -r requirements.txt
pip3 install --user PyQtWebEngine

It all installed fine this time except I got one warning saying sth like beautifulsoup4 reqired ==4.6.0 & beautifulsoup4 installed : 4.8.0 (And it's incompatible in RED letters). Then I checked the requirements text myself and it apparently says 4.8.0 is required.. What is wrong here?

Since I am on Arch,sudo apt-get install python3-pyqt5.qtwebengine didn't work for me.. So I went over to Arch repo and installed these two packages:
https://www.archlinux.org/packages/extra/x86_64/python-pyqtwebengine/
https://www.archlinux.org/packages/extra/x86_64/python-pyqt5/

After that, I executed

chmod +x run.sh
./run.sh

And then I get that splash screen, it hangs, then it fades away after I launch. Please help!
Here it is: https://imgur.com/6Lz2ca6

Program getting stuck at sending notification

Sometimes, about 1 in 50 songs, the program will just stop at notify.sound(error) from notify.send(f'{info["artist"][0]} - {info["name"]}') in downloadBySpotifyUriAlbumMode

EDIT: Forgot to add: I'm on Debian 10 with KDE plasma

OSError: unable to install ffmpeg-linux64-v3.3.1

Hello,
I've solved the imageio issue, but I'm facing another one
Full traceback:

Traceback (most recent call last):
  File "./main.py", line 3, in <module>
    from youtube import Youtube
  File "/home/levente/Stuff/packages/smd/youtube.py", line 13, in <module>
    from moviepy.editor import *
  File "/home/levente/.local/lib64/python3.6/site-packages/moviepy/editor.py", line 26, in <module>
    imageio.plugins.ffmpeg.download()
  File "/home/levente/.local/lib64/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 79, in download
    get_remote_file(fname=fname, directory=directory, force_download=force_download)
  File "/home/levente/.local/lib64/python3.6/site-packages/imageio/core/fetching.py", line 130, in get_remote_file
    _fetch_file(url, filename)
  File "/home/levente/.local/lib64/python3.6/site-packages/imageio/core/fetching.py", line 189, in _fetch_file
    % os.path.basename(file_name)
OSError: Unable to download 'ffmpeg-linux64-v3.3.1'. Perhaps there is a no internet connection? If there is, please report this problem.

How this software is related to youtube-dl and ritiek/spotify-downloader

I found similar software like:

https://github.com/ritiek/spotify-downloader

I would ask about history of this repository. It is fork of other repository, or https://github.com/ritiek/spotify-downloader was inspired by this one or there are independent projects?


I found them because of error:

Traceback (most recent call last):
  File "/home/daniel/.local/lib/python3.6/site-packages/mutagen/_util.py", line 235, in _openfile
    fileobj = open(filename, "rb+" if writable else "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'cache/2VKiFacCGkfognvneCJC9S/2VKiFacCGkfognvneCJC9S.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./main.py", line 771, in <module>
    CLI.main(sys.argv[1:])
  File "./main.py", line 614, in main
    md.downloadBySpotifyUriAlbumMode(array[i+1], CLI.path)
  File "./main.py", line 282, in downloadBySpotifyUriAlbumMode
    data=info
  File "/home/daniel/pro/smd/editor.py", line 67, in setTags
    ID3=ID3
  File "/home/daniel/.local/lib/python3.6/site-packages/mutagen/_file.py", line 49, in __init__
    self.load(*args, **kwargs)
  File "/home/daniel/.local/lib/python3.6/site-packages/mutagen/_util.py", line 139, in wrapper
    writable, create) as h:
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/daniel/.local/lib/python3.6/site-packages/mutagen/_util.py", line 256, in _openfile
    raise MutagenError(e)
mutagen.MutagenError: [Errno 2] No such file or directory: 'cache/2VKiFacCGkfognvneCJC9S/2VKiFacCGkfognvneCJC9S.mp3'

that was described in

https://github.com/ritiek/spotify-downloader/issues/149

And instalation of

pip3 install spotdl -U

helped with this issue.

Maybe server error

TG bot doesn't response for "ленина пакет - гражданин" entered data. It`s forethought flow of bot?

Python dependencys not found on requierements.txt

when i'm install py dependencys on requirements.txt. I found some problem, here my log

ERROR: Command errored out with exit status 1:
 command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6dkwhpi0/pygame/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6dkwhpi0/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-6dkwhpi0/pygame/pip-egg-info
     cwd: /tmp/pip-install-6dkwhpi0/pygame/
Complete output (18 lines):


WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...


Hunting dependencies...
SDL     : found 1.2.15
FONT    : not found
IMAGE   : not found
MIXER   : not found
PNG     : found
JPEG    : found
SCRAP   : found
PORTMIDI: not found
PORTTIME: not found
FREETYPE: found 23.1.17
Missing dependencies
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

thanks for helping and sorry for my bad eng
Edit: I use arch linux

ModuleNotFoundError: No module named 'dbus'

OS High Sierra 10.13.4
python version 3.8.2

When I use
python3 main.py
Traceback (most recent call last):
File "main.py", line 10, in
import notify2
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/notify2.py", line 39, in
import dbus
ModuleNotFoundError: No module named 'dbus'

Error in installing PyQtWebEngine

I have no problem with the whole package but PyQtWebEngine failed to install on Ubuntu 19.10 with such error :
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kjstnufl/PyQtWebEngine/
error smd

ERROR: This video is unavailable. ERROR - Some problems on classify loop

Hi,

I have this issue when downloading a song from spotify :

$ python3 main.py -ss "https://open.spotify.com/track/2QoDAlMnML5haTXvYRS86X?si=eMGX4dlwQd-7dyiG6OmUHQ"
ERROR: This video is unavailable.
2020-01-03 11:17:42,694 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-01-03 11:17:47,284 - ERROR - Some problems on classify loop
2020-01-03 11:17:49,635 - ERROR - Youtube:os.makedirs('cache/'+path)
2QoDAlMnML5haTXvYRS86X
[MoviePy] Writing audio in cache/2QoDAlMnML5haTXvYRS86X/2QoDAlMnML5haTXvYRS86X.mp3
100%|██████████████████████████████████████| 4282/4282 [00:05<00:00, 821.49it/s]
[MoviePy] Done.
2QoDAlMnML5haTXvYRS86X
None

I works eventually, but I get 3 notifications and take way much more time when downloading a playlist. Also, the GUI version won't work, I think because of this problem.

Any solution ? :)

PS : I also always get the notification "Downloading from youtube", isn't it supposed to be downloaded from spotify ?

Installation problem

Hi,
I have a problem with installation. How do I need to install it step by step? I have opened cmd in downloaded "smd-1.6.5" folder and I have installed requirements with command "pip3 install -r requirements.txt" and then what? When I write "./main.py" it says "'.' is not recognized as an internal or external command, operable program or batch file." And nothing happens.
Help me

Unable to import modules

After successfully installing all the requirements, I am not able to run the script ./main.py:

Traceback (most recent call last):
File "./main.py", line 3, in
from youtube import Youtube
File "/home/fariss/smd/youtube.py", line 13, in
from moviepy.editor import *
File "/home/fariss/.local/lib/python3.6/site-packages/moviepy/editor.py", line 23, in
import imageio
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/init.py", line 22, in
from .core import FormatManager, RETURN_BYTES
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/core/init.py", line 10, in
from .util import Image, Array, Dict, asarray, image_as_uint, urlopen
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/core/util.py", line 27, in
import numpy as np
File "/home/fariss/.local/lib/python3.6/site-packages/numpy/init.py", line 142, in
from . import core
File "/home/fariss/.local/lib/python3.6/site-packages/numpy/core/init.py", line 91, in
raise ImportError(msg.format(path))
ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/fariss/.local/lib/python3.6/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

I also don't know what packages to install manually.

SyntaxError: Invalid Syntax

Fresh install, trying to run main.py using python 3.5.3 gives error File "./main.py", line 30 notify.send(f'Downloading from YouTube', downloaded=False) ^ SyntaxError: invalid syntax

Connect smd to Telegram

Hey guys,
Do you have any idea to how can we connect SMD to our telegram bot?
I'll really appreciate if you can help me.
Thanks.

Couldn't install PyQtWebEngine

This is the output:

Collecting PyQtWebEngine
Using cached https://files.pythonhosted.org/packages/71/be/cd5243a456aae37788eebd8333d2326fd830de7ce1f1ac6618e966a66862/PyQtWebEngine-5.14.0-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
Requirement already satisfied: PyQt5-sip<13,>=12.7 in /home/------/.local/lib/python3.7/site-packages (from PyQtWebEngine) (12.7.0)
Collecting PyQt5>=5.14 (from PyQtWebEngine)
Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.7/tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-8m7jyh2s/PyQt5/setup.py'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-8m7jyh2s/PyQt5/

while excecuting this python3 main.py /main.py

rajeshnayar@rajeshubuntu:~/Downloads/smd-master$ ./main.py
Traceback (most recent call last):
  File "./main.py", line 3, in <module>
    from youtube import Youtube
  File "/home/rajeshnayar/Downloads/smd-master/youtube.py", line 16, in <module>
    from moviepy.editor import *
  File "/home/rajeshnayar/.local/lib/python3.8/site-packages/moviepy/editor.py", line 26, in <module>
    imageio.plugins.ffmpeg.download()
  File "/home/rajeshnayar/.local/lib/python3.8/site-packages/imageio/plugins/ffmpeg.py", line 71, in download
    get_remote_file(fname=fname,
  File "/home/rajeshnayar/.local/lib/python3.8/site-packages/imageio/core/fetching.py", line 127, in get_remote_file
    _fetch_file(url, filename)
  File "/home/rajeshnayar/.local/lib/python3.8/site-packages/imageio/core/fetching.py", line 181, in _fetch_file
    raise IOError('Unable to download %r. Perhaps there is a no internet '
OSError: Unable to download 'ffmpeg-linux64-v3.3.1'. Perhaps there is a no internet connection? If there is, please report this problem.
rajeshnayar@rajeshubuntu:~/Downloads/smd-master$ python3 main.py
Traceback (most recent call last):
  File "main.py", line 3, in <module>
    from youtube import Youtube
  File "/home/rajeshnayar/Downloads/smd-master/youtube.py", line 16, in <module>
    from moviepy.editor import *
  File "/home/rajeshnayar/.local/lib/python3.8/site-packages/moviepy/editor.py", line 26, in <module>
    imageio.plugins.ffmpeg.download()
  File "/home/rajeshnayar/.local/lib/python3.8/site-packages/imageio/plugins/ffmpeg.py", line 71, in download
    get_remote_file(fname=fname,
  File "/home/rajeshnayar/.local/lib/python3.8/site-packages/imageio/core/fetching.py", line 127, in get_remote_file
    _fetch_file(url, filename)
  File "/home/rajeshnayar/.local/lib/python3.8/site-packages/imageio/core/fetching.py", line 181, in _fetch_file
    raise IOError('Unable to download %r. Perhaps there is a no internet '
OSError: Unable to download 'ffmpeg-linux64-v3.3.1'. Perhaps there is a no internet connection? If there is, please report this problem.
rajeshnayar@rajeshubuntu:~/Downloads/smd-master$ 

Issue with the instalation

Hi, well I have an issue when I tried to excecute this line

pip3 install PyQtWebEngine

So when I tried to execute main.py I have also so many other errors
image

I tried on the telegram version to download this song but it brings me the wrong song, others that I tried to download from the app worked pretty well, I love a lot the bot and I would like to use the main app on the PC

"imageio.ffmpeg.download() has been deprecated. "

python3 main.py
Traceback (most recent call last):
File "main.py", line 3, in
from youtube import Youtube
File "/home/james/Downloads/smd/youtube.py", line 13, in
from moviepy.editor import *
File "/home/james/.virtualenvs/utils3/lib/python3.7/site-packages/moviepy/editor.py", line 26, in
imageio.plugins.ffmpeg.download()
File "/home/james/.virtualenvs/utils3/lib/python3.7/site-packages/imageio/plugins/ffmpeg.py", line 40, in download
"imageio.ffmpeg.download() has been deprecated. "
RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'

Any way to have the desktop CLI or GUI on windows?

Hey i really love the Telegram Bot but its not letting me download bigger spotify playlists, always says "fuck you" i tried get the smd on python windows working.

I installed 1. and 2. but 3. just says "sudo" cant get found in CMD or in python says syntax invalid

  1. pip3 install -r requirements.txt
  2. pip3 install PyQtWebEngine
  3. sudo apt-get install python3-pyqt5.qtwebengine

im using win 10 and python 3.7

Usage on Telegram

All you did was post a bunch of advertising screenshots without any concrete information on how to use it. Can you update your readme.md to reflect that?

I can't download any song or playlist

I have already try to copy Spotify URL via web page and application and also I have made a second attempt with Deezer but without success.

Here output:

manu@manu-GS60-6QE:~/Music/smd$ ./main.py -dp "https://www.deezer.com/playlist/5852955582?utm_source=deezer&utm_content=playlist-5852955582&utm_term=1409000942_1587411805&utm_medium=web"
Downloading 1 of 50
ERROR: This video is unavailable.
2020-04-20 21:44:11,494 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-04-20 21:44:13,276 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-04-20 21:44:14,993 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-04-20 21:44:16,578 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
Traceback (most recent call last):
  File "/home/manu/.local/lib/python3.7/site-packages/mutagen/_util.py", line 235, in _openfile
    fileobj = open(filename, "rb+" if writable else "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'cache/D64786125T/D64786125T.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./main.py", line 771, in <module>
    CLI.main(sys.argv[1:])
  File "./main.py", line 654, in main
    md.downloadByDeezerUrlPlaylistMode(array[i+1], CLI.path)
  File "./main.py", line 441, in downloadByDeezerUrlPlaylistMode
    data=info
  File "/home/manu/Music/smd/editor.py", line 67, in setTags
    ID3=ID3
  File "/home/manu/.local/lib/python3.7/site-packages/mutagen/_file.py", line 49, in __init__
    self.load(*args, **kwargs)
  File "/home/manu/.local/lib/python3.7/site-packages/mutagen/_util.py", line 139, in wrapper
    writable, create) as h:
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/home/manu/.local/lib/python3.7/site-packages/mutagen/_util.py", line 256, in _openfile
    raise MutagenError(e)
mutagen.MutagenError: [Errno 2] No such file or directory: 'cache/D64786125T/D64786125T.mp3'

manu@manu-GS60-6QE:~/Music/smd$ ./main.py -sp "https://open.spotify.com/playlist/37i9dQZF1DWTlgzqHpWg4m"
Downloading 1 of 72
ERROR: This video is unavailable.
2020-04-20 21:36:56,081 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-04-20 21:36:57,848 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-04-20 21:36:59,623 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-04-20 21:37:01,344 - ERROR - Some problems on classify loop
2020-04-20 21:37:01,351 - ERROR - Youtube:os.makedirs('cache/'+path)
ERROR: This video is unavailable.
Traceback (most recent call last):
  File "/home/manu/.local/lib/python3.7/site-packages/mutagen/_util.py", line 235, in _openfile
    fileobj = open(filename, "rb+" if writable else "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'cache/3Pnhzf3Knhdsavx0VM2ZmG/3Pnhzf3Knhdsavx0VM2ZmG.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./main.py", line 771, in <module>
    CLI.main(sys.argv[1:])
  File "./main.py", line 624, in main
    md.downloadBySpotifyUriPlaylistMode(array[i+1], CLI.path)
  File "./main.py", line 229, in downloadBySpotifyUriPlaylistMode
    data=info
  File "/home/manu/Music/smd/editor.py", line 67, in setTags
    ID3=ID3
  File "/home/manu/.local/lib/python3.7/site-packages/mutagen/_file.py", line 49, in __init__
    self.load(*args, **kwargs)
  File "/home/manu/.local/lib/python3.7/site-packages/mutagen/_util.py", line 139, in wrapper
    writable, create) as h:
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/home/manu/.local/lib/python3.7/site-packages/mutagen/_util.py", line 256, in _openfile
    raise MutagenError(e)
mutagen.MutagenError: [Errno 2] No such file or directory: 'cache/3Pnhzf3Knhdsavx0VM2ZmG/3Pnhzf3Knhdsavx0VM2ZmG.mp3'

thanks in advance

can't download

I was trying to download a playlist. After giving access of my spotify this error code was showing,

Traceback (most recent call last):
  File "./main.py", line 771, in <module>
    CLI.main(sys.argv[1:])
  File "./main.py", line 624, in main
    md.downloadBySpotifyUriPlaylistMode(array[i+1], CLI.path)
  File "./main.py", line 208, in downloadBySpotifyUriPlaylistMode
    playlist = user.getPlaylistTracks(playlist_uri)
  File "/home/ashraf/smd/spotify.py", line 153, in getPlaylistTracks
    for j, item in enumerate(playlist['items']):
KeyError: 'items'

And this when I tried to download a track,

ERROR: This video is unavailable.
2020-03-15 21:00:13,468 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-03-15 21:00:16,342 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-03-15 21:00:19,073 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-03-15 21:00:22,153 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.

I am using Ubuntu 18.04 on Windows 10.

SyntaxError: invalid syntax

I have this error:

./main.py File "./main.py", line 71 fixed_name = f'{info["artist"][0]} - {info["name"]}' ^ SyntaxError: invalid syntax

Possible future feature

For the Telegram bot.

Giving album/playlist links should return the audio files for all tracks in it.

> when i'm install py dependencys on requirements.txt. I found some problem, here my log

when i'm install py dependencys on requirements.txt. I found some problem, here my log

ERROR: Command errored out with exit status 1:
 command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6dkwhpi0/pygame/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6dkwhpi0/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-6dkwhpi0/pygame/pip-egg-info
     cwd: /tmp/pip-install-6dkwhpi0/pygame/
Complete output (18 lines):


WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...


Hunting dependencies...
SDL     : found 1.2.15
FONT    : not found
IMAGE   : not found
MIXER   : not found
PNG     : found
JPEG    : found
SCRAP   : found
PORTMIDI: not found
PORTTIME: not found
FREETYPE: found 23.1.17
Missing dependencies
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

thanks for helping and sorry for my bad eng
Edit: I use arch linux

I'm having the same issue here but with ubuntu 18.04

Originally posted by @DroidZed in #38 (comment)

I get the same error on my ubuntu 20.04

OSError: Unable to download ffmpeg-osx-v3.2.4

Donate? Why?

OSError: Unable to download 'ffmpeg-osx-v3.2.4'. Perhaps there is a no internet connection? If there is, please report this problem.

So!!!! When will by SMD working correctly then I will send donate! I am pleased to do so! But not for a broken application.

iMac:smd Ducho$ ./main.py -sa "https://open.spotify.com/album/2xbzJIow0xg4zryI2hWgnX"
Traceback (most recent call last):
  File "./main.py", line 3, in <module>
    from youtube import Youtube
  File "/Users/Ducho/Downloads/smd/youtube.py", line 16, in <module>
    from moviepy.editor import *
  File "/usr/local/lib/python3.7/site-packages/moviepy/editor.py", line 26, in <module>
    imageio.plugins.ffmpeg.download()
  File "/usr/local/lib/python3.7/site-packages/imageio/plugins/ffmpeg.py", line 73, in download
    force_download=force_download)
  File "/usr/local/lib/python3.7/site-packages/imageio/core/fetching.py", line 127, in get_remote_file
    _fetch_file(url, filename)
  File "/usr/local/lib/python3.7/site-packages/imageio/core/fetching.py", line 183, in _fetch_file
    os.path.basename(file_name))
OSError: Unable to download 'ffmpeg-osx-v3.2.4'. Perhaps there is a no internet connection? If there is, please report this problem.

and after

>>> import imageio
>>> imageio.plugins.ffmpeg.download()
Imageio: 'ffmpeg-osx-v3.2.4' was not found on your computer; downloading it now.
Try 1. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-osx-v3.2.4 (33.8 MB)
Downloading: 35458856/35458856 bytes (100.0%)
  Done
File saved as /Users/Ducho/Library/Application Support/imageio/ffmpeg/ffmpeg-osx-v3.2.4.
>>> 

result:

iMac:smd Ducho$ ./main.py -sa "https://open.spotify.com/album/2xbzJIow0xg4zryI2hWgnX"
Traceback (most recent call last):
  File "./main.py", line 10, in <module>
    import notify2
  File "/usr/local/lib/python3.7/site-packages/notify2.py", line 39, in <module>
    import dbus
ModuleNotFoundError: No module named 'dbus'

mutagen.MutagenError: [Errno 2] No such file or directory

I have this issue with my raspberry, on board python 3.6.5.

Someone else have the same issue?!

pi@raspberrypi:/opt/smd $ sudo python3 main.py -s spotify:track:4tmwiN9YU7xMjh2hoqcVuI
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/mutagen/_util.py", line 235, in _openfile
fileobj = open(filename, "rb+" if writable else "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'cache/4tmwiN9YU7xMjh2hoqcVuI/4tmwiN9YU7xMjh2hoqcVuI.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 456, in
CLI.main(sys.argv[1:])
File "main.py", line 319, in main
state = md.downloadBySpotifyUri(argument)
File "main.py", line 81, in downloadBySpotifyUri
data=info
File "/opt/smd/editor.py", line 65, in setTags
ID3=ID3
File "/usr/local/lib/python3.6/site-packages/mutagen/_file.py", line 49, in init
self.load(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/mutagen/_util.py", line 139, in wrapper
writable, create) as h:
File "/usr/local/lib/python3.6/contextlib.py", line 81, in enter
return next(self.gen)
File "/usr/local/lib/python3.6/site-packages/mutagen/_util.py", line 256, in _openfile
raise MutagenError(e)
mutagen.MutagenError: [Errno 2] No such file or directory: 'cache/4tmwiN9YU7xMjh2hoqcVuI/4tmwiN9YU7xMjh2hoqcVuI.mp3'
pi@raspberrypi:/opt/smd $

Notifications

I think there are way too much notifications appearing when downloading an album or a playlist.
For the CLI version may when the process is done to show a notification or when an error will occur.

Toggle them on and off maybe?

Set the version for PyQtWebEngine

While downloading, I noticed that you used PyQt5 version 5.13 whilst your PyQtWebEngine defaults to 5.14
Please update it in the README.md , the latest version of PyQt5 5.14 will not download , it's lacking setup.py !

And also, please can you change the command so the dependency for PyQt5 version 5.13 would be the default one for PyQtWebEngine version 5.13 ?

I think this is the command :
pip3 install -Iv PyQtWebEngine==5.13 PyQt5==5.13 --no-cache-dir

What should i do?

image

OSError: Unable to download 'ffmpeg-win32-v3.2.4.exe'. Perhaps there is a no internet connection? If there is, please report this problem.

i have :
ffmpeg version git-2019-12-23-5b42d33 Copyright (c) 2000-2019 the FFmpeg developers

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave

ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
appears three times on each download.
Expected? This is running on a Fedora 30 headless server as root.
Example:

[MoviePy] Done.
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Downloading 9 of 12
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
34HSLyGMwx2xADMPklRpAt
[MoviePy] Writing audio in cache/34HSLyGMwx2xADMPklRpAt/34HSLyGMwx2xADMPklRpAt.mp3
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4795/4795 [00:04<00:00, 1027.58it/s]
[MoviePy] Done.
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Downloading 10 of 12
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
2RZk4D03tpPNUaJln1SpcI
[MoviePy] Writing audio in cache/2RZk4D03tpPNUaJln1SpcI/2RZk4D03tpPNUaJln1SpcI.mp3
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4869/4869 [00:02<00:00, 1662.73it/s]
[MoviePy] Done.

Nothing happened after running.

I've installed all smd requirements and there wasn't any error during installation. After running commands it just callback directory and then nothing.
Image attached below.
20200222_184928

GUI won't open properly

Everytime when i want to start the gui it actually starts and is visible for like half a second but then the gui crashes and nothing else. The CLI otherwise works, well at least it is usable but everytime i want to download an spotify album for example it starts to download the first track and then i get the same errors as in issue #37

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.