Skip to content

Error: KeyError('album') #95

@iamflorencejay

Description

@iamflorencejay

I've got an error when I transferring 800+ songs on YT music. How to fix this stuff?

Getting` Spotify tracks...
Spotify tracks: 100/845
Spotify tracks: 200/845
Spotify tracks: 300/845
Spotify tracks: 400/845
Spotify tracks: 500/845
Spotify tracks: 595/845
Spotify tracks: 695/845
Could not get Spotify playlist. Please check the playlist link.
 Error: KeyError('album')
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Florence\AppData\Local\Programs\Python\Python312\Scripts\spotify_to_ytmusic.exe\__main__.py", line 7, in <module>
  File "C:\Users\Florence\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\main.py", line 86, in main
    args.func(args)
  File "C:\Users\Florence\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\controllers.py", line 71, in create
    _create_ytmusic(args, playlist, ytmusic)
  File "C:\Users\Florence\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotify_to_ytmusic\controllers.py", line 58, in _create_ytmusic
    name = args.name + date if args.name else playlist["name"] + date
                                              ~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions