Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Download My Playlist: KeyError: 'playNavigationEndpoint' #1042

Closed
yusufkaanocak opened this issue Dec 16, 2020 · 1 comment
Closed
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed

Comments

@yusufkaanocak
Copy link

Environment

  • System OS: Linux

  • Python Version: 3.8.6

  • Install Source: pip

  • Version OR Commit hash:
    Name: spotdl
    Version: 3.1.4
    Summary: Downloads Spotify music from Youtube with metadata and album art
    Home-page: https://github.com/ritiek/spotify-downloader
    Author: Mikhail Zex (Not really my name)
    Author-email: unrealengin71+PyPi@gmail.com
    License: MIT
    Location: /home/lvlzyro/.local/lib/python3.8/site-packages
    Requires: spotipy, requests, rapidfuzz, a-pytube-fork-for-spotdl-users, mutagen, tqdm


Expected Behaviour

I tried to download a playlist by spotdl https://open.spotify.com/playlist/7kJjjpWpFoiEsUk8Sxk4hh\?si\=RpfPJL3mSiSTD3dN7WeOew

Actual Behaviour

It gave this exception:

Fetching Playlist...                                                           
Traceback (most recent call last):
  File "/home/lvlzyro/.local/bin/spotdl", line 8, in <module>
    sys.exit(console_entry_point())
  File "/home/lvlzyro/.local/lib/python3.8/site-packages/spotdl/__main__.py", line 114, in console_entry_point
    songObjList = get_playlist_tracks(request)
  File "/home/lvlzyro/.local/lib/python3.8/site-packages/spotdl/search/utils.py", line 82, in get_playlist_tracks
    song = SongObj.from_url(
  File "/home/lvlzyro/.local/lib/python3.8/site-packages/spotdl/search/songObj.py", line 66, in from_url
    youtubeLink = SongObj.searchProvider(
  File "/home/lvlzyro/.local/lib/python3.8/site-packages/spotdl/search/provider.py", line 478, in search_and_get_best_match
    results = search_and_order_ytm_results(
  File "/home/lvlzyro/.local/lib/python3.8/site-packages/spotdl/search/provider.py", line 366, in search_and_order_ytm_results
    results = __query_and_simplify(songSearchStr)
  File "/home/lvlzyro/.local/lib/python3.8/site-packages/spotdl/search/provider.py", line 176, in __query_and_simplify
    linkBlock = contents['musicResponsiveListItemRenderer'] \
KeyError: 'playNavigationEndpoint'

@yusufkaanocak yusufkaanocak added the Bug Unexpected problem or unintended behavior that needs to be fixed label Dec 16, 2020
@Silverarmor
Copy link
Member

Duplicate of #1038

@Silverarmor Silverarmor marked this as a duplicate of #1038 Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed
Projects
None yet
Development

No branches or pull requests

2 participants