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

KeyError: 'streamingdata' #63

Open
0xAdachi opened this issue Feb 27, 2024 · 1 comment
Open

KeyError: 'streamingdata' #63

0xAdachi opened this issue Feb 27, 2024 · 1 comment

Comments

@0xAdachi
Copy link

  • Downloading, please wait
    Traceback (most recent call last):
    File "spotify2mp3.py", line 206, in
    main(authtype=authtype, song=url, quality=quality, min_views=DEFAULT_MIN_VIEWS_FOR_DOWNLOAD, max_length=DEFAULT_MAX_LENGTH_FOR_DOWNLOAD)
    File "spotify2mp3.py", line 164, in main
    success = downloader.download_track(song)
    File "/home/adachi/spotify2mp3/downloader.py", line 189, in download_track
    video_downloaded_path, self.audio_quality = self.youtube_client.download(youtube_link, self.audio_quality)
    File "/home/adachi/spotify2mp3/apis/youtube.py", line 57, in download
    youtube_video_streams = youtube_video.streams.filter(only_audio=True)
    File "/home/adachi/.local/lib/python3.8/site-packages/pytube/main.py", line 296, in streams
    return StreamQuery(self.fmt_streams)
    File "/home/adachi/.local/lib/python3.8/site-packages/pytube/main.py", line 176, in fmt_streams
    stream_manifest = extract.apply_descrambler(self.streaming_data)
    File "/home/adachi/.local/lib/python3.8/site-packages/pytube/main.py", line 161, in streaming_data
    return self.vid_info['streamingData']
    KeyError: 'streamingData'
@0xAdachi
Copy link
Author

how to fix ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant