pytube icon indicating copy to clipboard operation
pytube copied to clipboard

[BUG]

Open CodeArtisanRiz opened this issue 3 years ago • 3 comments


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}. '

CodeArtisanRiz avatar Mar 25 '23 17:03 CodeArtisanRiz

Thank you for contributing to PyTube. Please remember to reference Contributing.md

github-actions[bot] avatar Mar 25 '23 17:03 github-actions[bot]

I suppose... When I was accessing the title of videos, errors were coming but using str(youtube.title) is working completely fine...

IntenseSoftwares avatar Mar 28 '23 14:03 IntenseSoftwares

Same as #1493, #1495.

olbermann avatar Mar 29 '23 07:03 olbermann