scdl-org / scdl

Soundcloud Music Downloader
GNU General Public License v2.0
3.41k stars 339 forks source link

Download playlist failed #505

Closed MrFox360 closed 4 months ago

MrFox360 commented 4 months ago

Hy. Please could somebody help me. I can not download playlists. Single track are not a ploblem. Thanks in advance I get this traceback:

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Scripts\scdl.exe__main__.py", line 7, in sys.exit(main()) ^^^^^^ File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\scdl.py", line 402, in main download_url(client, typing.cast(SCDLArgs, python_args)) File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\scdl.py", line 582, in download_url download_playlist(client, playlist, kwargs) File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\scdl.py", line 739, in download_playlist download_track( File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\scdl.py", line 1056, in download_track filename, is_already_downloaded = download_hls( ^^^^^^^^^^^^^ File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\scdl.py", line 984, in download_hls re_encode_to_out( File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\scdl.py", line 1365, in re_encode_to_out encoded = re_encode_to_buffer( ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\scdl.py", line 1563, in re_encode_to_buffer _add_metadata_to_stream(track, encoded_data, kwargs, playlist_info) File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\scdl.py", line 1331, in _add_metadata_to_stream assemble_metadata(mutagen_file, metadata) File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\functools.py", line 909, in wrapper return dispatch(args[0].class)(*args, **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\scdl\metadataassembler.py", line 164, in file["trkn"] = str(meta.album_track_num)


  File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\mutagen\_file.py", line 74, in __setitem__
    self.tags[key] = value
    ~~~~~~~~~^^^^^
  File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\mutagen\mp4\__init__.py", line 372, in __setitem__
    self._render(key, value)
  File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\mutagen\mp4\__init__.py", line 388, in _render
    return render_func(self, key, value, *render_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\fuxiu\AppData\Local\Programs\Python\Python312\Lib\site-packages\mutagen\mp4\__init__.py", line 651, in __render_pair
    track, total = v
    ^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
7x11x13 commented 4 months ago

Can you post the url of the playlist?

MrFox360 commented 4 months ago

https://soundcloud.com/mrfox1990/sets/liquid-1

thanks for reply

HeartbeatingForCenturies commented 4 months ago

https://soundcloud.com/mrfox1990/sets/liquid-1

thanks for reply

this playlist doesn't exist, make sure its public

MrFox360 commented 4 months ago

https://soundcloud.com/mrfox1990/sets/liquid-1?si=69d4cbd5504a40e5a61b79f82687b45c&utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing

Sorry now its public

7x11x13 commented 4 months ago

Fixed in v2.11.2

MrFox360 commented 4 months ago

Oh boy yeah. Thank you