spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.36k stars 1.6k forks source link

Not able to download playlists as error is popping up. says not able to find laylist #1408

Closed rsmyst closed 2 years ago

rsmyst commented 2 years ago

System OS

Windows

Python Version

3.9 (CPython)

Install Source

pip / PyPi

Install version / commit hash

3.9.0

Expected Behavior vs Actual Behavior

No error pops up. Playlist downloads properly. FYI, all the songs have been found on youtube, but the errors pops up after downloading everything.

Steps to reproduce

install everything and download from a playlist.

Traceback

ffmpeg returned an error (1)
ffmpeg arguments: "-i spotdl-temp\ezDjH1GbnEs.webm -codec:a libmp3lame -abr true -q:a 0 -v debug laylist"
ffmpeg gave this output:
=====
b"ffmpeg version 2021-10-28-git-e84c83ef98-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers\r\n
built with gcc 11.2.0 (Rev1, Built by MSYS2 project)\r\n  configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2
--enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh
--enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi
--enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom
--enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
--enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
--enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan
--enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb
--enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc
--enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa
--enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint\r\n
libavutil      57.  7.100 / 57.  7.100\r\n  libavcodec     59. 12.100 / 59. 12.100\r\n  libavformat    59.  8.100 / 59.
8.100\r\n  libavdevice    59.  0.101 / 59.  0.101\r\n  libavfilter     8. 15.100 /  8. 15.100\r\n  libswscale      6.
1.100 /  6.  1.100\r\n  libswresample   4.  0.100 /  4.  0.100\r\n  libpostproc    56.  0.100 / 56.  0.100\r\nSplitting
the commandline.\r\nReading option '-i' ... matched as input url with argument
'spotdl-temp\\ezDjH1GbnEs.webm'.\r\nReading option '-codec:a' ... matched as option 'codec' (codec name) with argument
'libmp3lame'.\r\nReading option '-abr' ... matched as AVOption 'abr' with argument 'true'.\r\nReading option '-q:a' ...
matched as option 'q' (use fixed quality scale (VBR)) with argument '0'.\r\nReading option '-v' ... matched as option
'v' (set logging level) with argument 'debug'.\r\nReading option 'laylist' ... matched as output url.\r\nFinished
splitting the commandline.\r\nParsing a group of options: global .\r\nApplying option v (set logging level) with
argument debug.\r\nSuccessfully parsed a group of options.\r\nParsing a group of options: input url
spotdl-temp\\ezDjH1GbnEs.webm.\r\nSuccessfully parsed a group of options.\r\nOpening an input file:
spotdl-temp\\ezDjH1GbnEs.webm.\r\n[NULL @ 000001fac218c340] Opening 'spotdl-temp\\ezDjH1GbnEs.webm' for reading\r\n[file
@ 000001fac218c9c0] Setting default whitelist 'file,crypto,data'\r\n[matroska,webm @ 000001fac218c340] Format
matroska,webm probed with size=2048 and score=100\r\nst:0 removing common factor 1000000 from timebase\r\n[matroska,webm
@ 000001fac218c340] Before avformat_find_stream_info() pos: 685 bytes read:32768 seeks:0 nb_streams:1\r\n[opus @
000001fac21902c0] skip 312/960 samples\r\n[matroska,webm @ 000001fac218c340] All info found\r\n[matroska,webm @
000001fac218c340] After avformat_find_stream_info() pos: 1204 bytes read:32768 seeks:0 frames:1\r\nInput #0,
matroska,webm, from 'spotdl-temp\\ezDjH1GbnEs.webm':\r\n  Metadata:\r\n    encoder         : google/video-file\r\n
Duration: 00:04:03.88, start: -0.007000, bitrate: 126 kb/s\r\n  Stream #0:0(eng), 1, 1/1000: Audio: opus, 48000 Hz,
stereo, fltp, delay 312 (default)\r\nSuccessfully opened the file.\r\nParsing a group of options: output url
laylist.\r\nApplying option codec:a (codec name) with argument libmp3lame.\r\nApplying option q:a (use fixed quality
scale (VBR)) with argument 0.\r\nSuccessfully parsed a group of options.\r\nOpening an output file: laylist.\r\n[NULL @
000001fac21d75c0] Unable to find a suitable output format for 'laylist'\r\nlaylist: Invalid argument\r\n[AVIOContext @
000001fac2195540] Statistics: 32768 bytes read, 0 seeks\r\n"

this keeps going on for all the songs individually

Other details

i have python 3.1.10

Silverarmor commented 2 years ago

Please follow the instructions.

  1. Please provide a link to the playlist you are downloading with an error.
  2. Can you run pip show spotdl and show full output?
  3. Python 3.10 is not yet supported, downgrade to python3.9
rsmyst commented 2 years ago

@Silverarmor Playlist link = https://open.spotify.com/playlist/4IeI5PQYePhXaezV9HRDIr?si=33cc2cc2862b4520 result for 2. Name: spotdl Version: 3.9.0 Summary: Download your Spotify playlists and songs along with album art and metadata Home-page: https://github.com/spotDL/spotify-downloader Author: spotDL Team Author-email: spotdladmins@googlegroups.com License: MIT Location: c:\users\lenovo\appdata\roaming\python\python39\site-packages Requires: pytube, rapidfuzz, Unidecode, mutagen, ytmusicapi, beautifulsoup4, rich, requests, yt-dlp, spotipy Required-by:

  1. Downgraded to 3.9.7 and issue is still there.
xnetcat commented 2 years ago

Looks like ffmpeg is converting the WebM file to file without extension. Are you using path template? If so {ext} is required

xnetcat commented 2 years ago

-playlist is outdated. Closing