question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting a KeyError: 'title' when trying to download a playlist

See original GitHub issue

im currently getting a key error when trying to download a playlist, anyone know a fix for this?

File "C:\Python34\lib\tkinter\__init__.py", line 1487, in __call__ return self.func(*args) File "D:/Pycharm/idk/playlist activator/youtubedownloaderguiNEW.py", line 38, in func pl.download_all('C:\\pythonmusic',prefix_number= True) File "C:\Users\nicton\PycharmProjects\abs\venv\lib\site-packages\pytube\contrib\playlist.py", line 172, in download_all dl_stream.download(download_path, filename_prefix=prefix) File "C:\Users\nicton\PycharmProjects\abs\venv\lib\site-packages\pytube\streams.py", line 206, in download filename = filename or self.default_filename File "C:\Users\nicton\PycharmProjects\abs\venv\lib\site-packages\pytube\streams.py", line 176, in default_filename title = self.player_config_args['title'] KeyError: 'title'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:36 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
ndg63276commented, Jul 30, 2019

Hopefully that pull request fixes the problem.

4reactions
LuffyKingcommented, Aug 11, 2019

You have to edit the source files for pytube on your computer. You will then need to make the following changes below https://github.com/nficano/pytube/pull/435/files. The quickest way to find the files for Pytube, is to import pytube and check it’s file method!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting a KeyError: 'title' when trying to download a playlist #434
im currently getting a key error when trying to download a playlist, anyone know a fix for this? File "C:\Python34\lib\tkinter\__init__.py", ...
Read more >
KeyError: 'list' with pytube after asking the user for the URL ...
I try to download a whole playlist in Youtube and use this code. I also updated pytube, pip, Python, and try to change...
Read more >
Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >
"KeyError: 'content_html'", can't download any channels - Reddit
I've got a setup for downloading several channels' content on a regular basis, but lately it hasn't been downloading anything.
Read more >
How to fix error downloading video from youtube with pytube
KeyError : 'title'. Searching how to fix the error I made this, it's rough but it works. Go in the pytube dir, making...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found