Closed Starlord-199 closed 1 month ago
Hey, are you using the new package? npm install -g https://github.com/swapnilsoni1999/spotify-dl
not the one on npm driectly
[
] Hi as you can see, I'm getting this error. Unfortunately, I'm not that good with cmd, so I'm not sure what it wants. Could you help me understand? Please
what version of node and npm?
node -v
npm -v
These are the versions
whats in the "complete log" it listed
Also do you have git installed?
This is the log file
2024-08-26T11_12_18_853Z-debug-0.log
File Complete
and git version
git -v
if I type git -v it tells me that there is no version of git
“git” is not recognized as an internal or external command, an executable program or a batch file.
youll need to install git https://git-scm.com/download/win
installed
I now try to install using this string? npm install -g https://github.com/swapnilsoni1999/spotify-dl
2024-08-26T11_38_47_700Z-debug-1.txt
I tried to install it and it started, but then it gave me another error. I've attached both screens and log.txt. Thanks so much for all your help.
I thought I'd fixed the problem by going directly to the path he indicated (C:\Users\Starlord\AppAppData\Roaming\npm), deleting the folders, and reinstalled everything. The system seemed to be fine and started downloading, but then it stopped after downloading the first one and gave me another error. Could you explain what I can do?
Looks like the fallback image no longer exists, ill push an update to fix it over the next few days
aaaaah ok so now everything is ok the problem is no longer me? right?
@Starlord-199 should be fixed in the latest version lmk if its still breaking
Update done as you can see from the version number, but as you can see it still gives me error, how come? am I doing something wrong?
ah.. sorry.. it assumed its being run from the directory that the package installed.
Just pushed another version to avoid that problem
I know I'm bugging and pestering you today but unfortunately I don't know maybe I'm doing something wrong even after updating it still gives me error how can I fix it you mentioned directory do I have to run it in any particular way? Thank you so much you are the best thank you really for the help and support you are giving me.
not your fault, i forgot to comment out the cover logic so it "worked" with the real not fallback.
Now it should work 😆
ooooh yes now it works perfectly you are a master thank you so much for everything and thank you for the tool you created I can never stop thanking you enough you are the best. Thank you very much indeed for everything. I would not know how to do without this. 😍😍❤️
Did not work for me, have the newest package from github:
$ PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install -g https://github.com/swapnilsoni1999/spotify-dl
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated har-validator@5.1.5: this library is no longer supported
npm warn deprecated string-similarity@4.0.4: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm warn deprecated superagent@6.1.0: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net
npm warn deprecated puppeteer@13.7.0: < 22.8.2 is no longer supported
> puppeteer@13.7.0 install
> node install.js
**INFO** Skipping browser download. "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" environment variable was found.
> es5-ext@0.10.64 postinstall
> node -e "try{require('./_postinstall')}catch(e){}" || exit 0
added 350 packages, and changed 1 package in 18s
78 packages are looking for funding
run `npm fund` for details
spotifydl https://open.spotify.com/playlist/1XjBwuaAt0rEAfc4tBmaBV?si=3k0Jo4OuSLSova6KPhVGHw
⠋ Searching… Please be patient :)
/data/data/com.termux/files/usr/bin/sh: 1: which: ✖ Couldn't find ffmpeg. Please install https://ffmpeg.org
ℹ Starting processing of playlist (https://open.spotify.com/playlist/1XjBwuaAt0rEAfc4tBmaBV)
ℹ Generating new access token
(node:30874) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
========Update Available========
Use npm install -g spotify-dl
to update the package.
================================
ℹ extracting 36 tracks
ℹ Starting download of list 1/1
ℹ Downloading: Kiara und Milo - Sandra Wieczorek
ℹ Total Items: 36
ℹ 1/36
Artist: Antje Schomaker
Album: Unter meinem Bett 8
Item: Ich bin wichtig
ℹ searching youtube with keywords "Unter meinem Bett 8 - Ich bin wichtig"
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ 2/36
Artist: Lina Maly
Album: Hush Hush / Hamburg
Item: Fühl
ℹ searching youtube with keywords "Hush Hush / Hamburg - Fühl"
/data/data/com.termux/files/usr/bin/sh: 1: which: ✖ Couldn't find ffmpeg. Please install https://ffmpeg.org
It
/data/data/com.termux/files/usr/bin/sh: 1: which: ✖ Couldn't find ffmpeg. Please install https://ffmpeg.org
It just did not recognize the version but it's installed:
$ apt-cache policy ffmpeg ffmpeg:
Installed: 6.1.2
Candidate: 6.1.2
Version table:
*** 6.1.2 500
500 https://grimler.se/termux/termux-main stable/main aarch64 Packages
100 /data/data/com.termux/files/usr/var/lib/dpkg/status
in your terminal what does which ffmpeg
return?
if its not in the class path youll have to add it.
It returns:
ffmpeg
ffmpeg version 6.1.2 Copyright (c) 2000-2024 the FFmpeg developers
built with Android (12027248, +pgo, +bolt, +lto, +mlgo, based on r522817) clang version 18.0.1 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)
configuration: --arch=aarch64 --as=aarch64-linux-android-clang --cc=aarch64-linux-android-clang --cxx=aarch64-linux-android-clang++ --nm=llvm-nm --pkg-config=/home/builder/.termux-build/_cache/android-r27-api-24-v1/bin/pkg-config --strip=llvm-strip --cross-prefix=aarch64-linux-android- --disable-indevs --disable-outdevs --enable-indev=lavfi --disable-static --disable-symver --enable-cross-compile --enable-gnutls --enable-gpl --enable-version3 --enable-jni --enable-lcms2 --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libharfbuzz --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenmpt --enable-libopus --enable-librav1e --enable-libsoxr --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-mediacodec --enable-opencl --enable-shared --prefix=/data/data/com.termux/files/usr --target-os=android --extra-libs=-landroid-glob --disable-vulkan --enable-neon --disable-libfdk-aac
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg
```'
hmmm what about if you try the node command child_process.execSync('which ffmpeg')
Did not see your which:
which ffmpeg
/data/data/com.termux/files/usr/bin/ffmpeg
node
Welcome to Node.js v22.5.1.
Type ".help" for more information.
> child_process.execSync('which ffmpeg')
<Buffer 2f 64 61 74 61 2f 64 61 74 61 2f 63 6f 6d 2e 74 65 72 6d 75 78 2f 66 69 6c 65 73 2f 75 73 72 2f 62 69 6e 2f 66 66 6d 70 65 67 0a>
>
just to confirm which os?
It's android 14 patch 2024-08.
And on Termux:
termux-info
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=11641
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://nl.mirror.flokinet.net/termux/termux-main stable main
Updatable packages:
libnghttp2/stable 1.63.0 aarch64 [upgradable from: 1.62.1]
termux-tools/stable 1.43.4-1 all [upgradable from: 1.43.3]
termux-tools version:
1.43.3
Android version:
14
Kernel build information:
Linux localhost 5.4.254-qgki-28575149-abA528BXXS9GXG5 #1 SMP PREEMPT Wed Jul 24 16:23:14 KST 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-A528B
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.window versionCode:15
com.termux.styling versionCode:1000
com.termux.api versionCode:51
ah okay. ive not super familiar with this flow.
But i just pushed an update to try and give more context around the error.
Lmk what it says after you update
~ $ spotifydl https://open.spotify.com/playlist/1XjBwuaAt0rEAfc4tBmaBV?si=3k0Jo4OuSLSova6KPhVGHw ℹ Starting processing of playlist (https://open.spotify.com/playlist/1XjBwuaAt0rEAfc4tBmaBV)
ℹ Generating new access token
(node:19784) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
========Update Available========
Use npm install -g spotify-dl
to update the package.
================================
ℹ extracting 36 tracks
ℹ Starting download of list 1/1
ℹ Downloading: Kiara und Milo - Sandra Wieczorek
ℹ Total Items: 36
ℹ 1/36
Artist: Antje Schomaker
Album: Unter meinem Bett 8
Item: Ich bin wichtig
ℹ searching youtube with keywords "Unter meinem Bett 8 - Ich bin wichtig"
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ 2/36
Artist: Lina Maly
Album: Hush Hush / Hamburg
Item: Fühl
ℹ searching youtube with keywords "Hush Hush / Hamburg - Fühl"
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
ℹ Input stream error: ℹ Youtube error retrying download
⠋ Trying youtube link (https://youtube.com/watch?v=X17vVaj7d-Q)
I reinstalled with:
~ $ PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install -g https://github.com/swapnilsoni1999/spotify-dl --force
npm warn using --force Recommended protections disabled.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated string-similarity@4.0.4: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated har-validator@5.1.5: this library is no longer supported
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm warn deprecated superagent@6.1.0: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net
npm warn deprecated puppeteer@13.7.0: < 22.8.2 is no longer supported
> puppeteer@13.7.0 install
> node install.js
**INFO** Skipping browser download. "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" environment variable was found.
> es5-ext@0.10.64 postinstall
> node -e "try{require('./_postinstall')}catch(e){}" || exit 0
changed 351 packages in 16s
78 packages are looking for funding
run `npm fund` for details
its gotta be something todo with, /data/data/com.termux/files/usr/bin/sh:
I just updated the termux script so try
sh -c "$(curl -fsSL https://raw.githubusercontent.com/SwapnilSoni1999/spotify-dl/master/tools/termux.sh)"
which should reinstall
Then re try a download
Ok, my bad I'm sorry, the problem seems to be some adguard DNS filter, if I am in the normal internet it works, thank you for your help!
no worries, glad you sorted it 👍
In case somebody else stumbles on this issue this has to be whitelisted in custom filtering:
@@||manifest.googlevideo.com^$important
Hi all, I've been having this issue for a few months now and I'm not sure what's causing it. Is it a bug or something else? Can anyone help me out? This is the error I'm getting: (Input stream error: Status code: 403). Thanks in advance to anyone who can help me out!