mirror of
https://github.com/HouJinlong/spotify-downloader.git
synced 2026-04-26 14:45:53 +03:00
很方便的下载spotify音乐和歌词文件
| node | ||
| .gitignore | ||
| cookies.txt | ||
| ffmpeg-release-amd64-static.tar.xz | ||
| README.md | ||
| spotify脚本使用.md | ||
| UserScript.js | ||
spotify-downloader
背景:很方便的下载spotify音乐和歌词文件
核心:使用spotDL 解析 spotify 基础信息,然后 去youtube 查找视频,FFmpeg 处理出音频
部署
- 安装 spotDL
- 解压 ffmpeg-release-amd64-static.tar.xz 在同级目录 并把最后解压文件名称改为 ffmpeg-5.0-amd64-static
- xc -d ffmpeg-4.2.2.tar.xz
- tar xvJf ffmpeg-4.2.2.tar.xz
- pm2.config.js 修改 DOMAIN 和 PORT
- PORT 服务端口
- DOMAIN 访问该服务的域名或者ip端口
- 安装nvm 使用node v16.18.0 安装 pm2
- 在node目录下, pm2 restart pm2.config.js 启动服务
- 参考脚本使用
文件说明
node 服务器脚本调用 spotDL
error 错误文件夹
output 下载后音频存放文件夹
index.mjs 脚本文件夹 提供 音频静态服务,下载接口,下载状态获取接口
package.json 依赖
pm2.config.js 配置
UserScript.js 油猴子脚本
问题
腾讯云服务器翻墙
v2raya
使用v2raya解决
-
设置代理所有流量
ShellClash
旧vpn过期新vpn bywa不支持v2raya改用 https://github.com/juewuy/ShellClash
FFmpeg安装4.2+(这步可跳过,之间使用下载的FFmpeg就行)
https://www.likecs.com/show-204371530.html
Your FFmpeg installation is too old (3.4), please update to 4.2+
spotify-downloader 调用 FFmpeg 报错
https://github.com/spotDL/spotify-downloader/issues/1324#issuecomment-868327581
解决办法,下载指定FFmpeg
https://github.com/spotDL/spotify-downloader#to-use-ffmpeg-binary-that-is-not-on-path-run
https网站内发送http不安全
This request has been blocked; the content must be served over HTTPS.


