npx danguilherme
danguilherme / spotivy Goto Github PK
View Code? Open in Web Editor NEW:musical_score: Download music videos from Spotify playlists
Home Page: https://danguilherme.github.io/blog/spotivy
License: MIT License
:musical_score: Download music videos from Spotify playlists
Home Page: https://danguilherme.github.io/blog/spotivy
License: MIT License
npx danguilherme
the criterion you use to consider a music video good is somehow weak. I suggest that you warn the users in the documentation that there is no certainty that the correct song will be download. What do you think?
Line 76 in 54a1a2d
{ Error: connect ETIMEDOUT 172.217.160.106:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '172.217.160.106',
port: 443 }
[WARN] Video not found!
Check if Caporal can help with the development of the CLI.
WIP: feature/tests
When use a audio download (.mp3), music is downloaded correctly but don`t play at all players.
I suposed this is problem with codec used (but I don't investigated this).
I do workaround this, using the https://cloudconvert.com/ to convert mp3 to mp3(but at configuration I set Audio Codec to mp3).
Can you take a look at this please?
Hello, I've just installed everything, updated all git dependencies
Windows 10 Enterprise LTSC
spotivy appears to be working, (configured YouTube API + Spotify App Client ID + Secret)
but, I can't download any video....
if I try: spotivy track 3SCsueX2bZdbEzRtKOCEyT
I get: [Download failed] Not Found
if I try: spotivy playlist wernerml 6ehHwU2hpFIqzsrdDokJKv (which is a a playlist with 2 videos, 1 of them being the same 3SCsueX2bZdbEzRtKOCEyT as in command above)
I get:
[Downloading playlist] Vacines
[Download failed] Cannot read properties of null (reading 'id')
[Download failed] Cannot read properties of null (reading 'id')
(which seems to be 2 error messages for the 2 videos of the playlist....
is this project outdated ? working ?
Thank you!
After installed, no commands work. The following error returned when i tryed to run spotify:
internal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module 'm3u8stream/lib/parse-time'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/gcruz/.nvm/versions/node/v10.15.3/lib/node_modules/spotivy/node_modules/ytdl-core/lib/info-extras.js:5:21)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/gcruz/.nvm/versions/node/v10.15.3/lib/node_modules/spotivy/node_modules/ytdl-core/lib/info.js:6:21)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
Wich is the requirements? Can you help me?
Node version 10.15.3
npm version 6.4.1
Create a simple contributing guide, which covers:
develop
).I have a mac and i'd like to be able to download official spotify vertical videos from spotify itself. could i use this program on a mac?
MIT should be enough :)
Can't know how to create
If a video is not found on youtube, I would await to skip this one and go to the next, but it throws an error and quits. I don't know if this is intended or just a bug.
Output:
...
[Downloading track] Maulisé - Une Beat Encore
TypeError: Cannot read property 'snippet' of undefined
at searchVideo.then.results (/usr/lib/node_modules/spotivy/youtube_search.js:60:65)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
[Download failed] Video not found
In the spotivy init
command, The url pointing to Spotify's developer portal is incorrect, redirecting users to an old beta.
website.
Update it with the correct URL: https://developer.spotify.com/dashboard/applications.
Make contributions a bit easier by using issue templates.
I've just installed for the first time and run the command to download a single track and got bellow error:
[WIP] I'm already trying to debug the code and fix this but I've decided to open the issue to know if anyone else had the same error !
At the moment, looks like it is something related to the creation of .downloaded metadata file.
It´s created only on download playlist command and not on single file command. So, metadata is undefined at line of error when trying to access ids property
Here's and example URL: https://open.spotify.com/episode/6JlkQ2HCV3A0OdksfT3Aix?si=MQ7WFyG1Rcu24UGQm7xY7A
I just downloaded the latest Spotivy and Node. I tried adding these episodes to a playlist but I'm getting "[Download failed] Cannot read property 'id' of null"
Hi! I was trying to download a playlist today and I got the error "Error: Status code: 403".
I made sure to run spotivy init and input my credentials (which are freshly generated).
I even generated new ones after that, and those didn't work either.
I really don't know what to do.
[spotivy v0.4.8]
[DEBUG] Loaded options:
{
"spotifyClientId": "",
"spotifyClientSecret": "",
"youtubeKey": "",
"output": "/home/giovan/Música/media",
"format": "audio",
"quality": "highest",
"flat": false,
"audio": true,
"tracks": [
"5tXyNhNcsnn7HbcABntOSf"
]
}
Saving media to '/home/giovan/Música/media'
[DEBUG] Spotify login
[Downloading track] Usher - DJ Got Us Fallin' In Love
[DEBUG] Search video: search "Usher - DJ Got Us Fallin' In Love"
[DEBUG] Search video: 20 item(s) returned
[DEBUG] Search music video:
- 2 of the videos are good results:
- 1. "Usher - DJ Got Us Fallin' In Love (Official Music Video) ft. Pitbull", by UsherVEVO
- 2. "Usher - DJ Got Us Fallin' In Love (Live from iTunes Festival, London, 2012) ft. Pitbull", by UsherVEVO
[DEBUG] Search music video: selected "Usher - DJ Got Us Fallin' In Love (Official Music Video) ft. Pitbull", by UsherVEVO
[DEBUG] Download from: https://www.youtube.com/watch?v=C-dvTjK_07c
[DEBUG] Download to : /home/giovan/Música/media/Usher - DJ Got Us Fallin' In Love.mp4
(node:8082) UnhandledPromiseRejectionWarning: Error: Error parsing info: Unexpected token ) in JSON at position 0
at exports.getBasicInfo (/home/giovan/.nvm/versions/node/v10.15.3/lib/node_modules/spotivy/node_modules/ytdl-core/lib/info.js:71:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:8082) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8082) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
If the current behavior is a bug, please provide the steps to reproduce.
spotivy init
spotivy playlist 12147255850 6OfbkGAFPxvSv3fvmSx5x6 --v --audio
What is the expected behavior?
Donwload the media on mp3 format.
Is there an error of my node version? What node version are required?
What is the current behavior?
I have no audio with the music videos that are downloaded. Is this normal? Is it supposed to only grab the video without audio?
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Download the music video with both video and audio.
Other relevant information:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.