[BUG]
KeyError Traceback (most recent call last) /usr/local/lib/python3.9/dist-packages/pytube/main.py in title(self) 340 try: --> 341 self._title = self.vid_info['videoDetails']['title'] 342 except KeyError:
KeyError: 'videoDetails'
During handling of the above exception, another exception occurred:
PytubeError Traceback (most recent call last) 1 frames /usr/local/lib/python3.9/dist-packages/pytube/main.py in title(self) 344 # if it doesn't, ask for a report. 345 self.check_availability() --> 346 raise exceptions.PytubeError( 347 ( 348 f'Exception while accessing title of {self.watch_url}. '
Thank you for contributing to PyTube. Please remember to reference Contributing.md
I suppose...
When I was accessing the title of videos, errors were coming but using str(youtube.title) is working completely fine...
Same as #1493, #1495.