Getting a KeyError: 'title' when trying to download a playlist
See original GitHub issueim 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:
- Created 4 years ago
- Reactions:6
- Comments:36 (1 by maintainers)
Top GitHub Comments
Hopefully that pull request fixes the problem.
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!