Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def _getVideoComponent(self, element: dict, shelfTitle: str = None) -> dic
},
'thumbnails': await self._getValue(video, ['thumbnail', 'thumbnails']),
'richThumbnail': await self._getValue(video, ['richThumbnail', 'movingThumbnailRenderer', 'movingThumbnailDetails', 'thumbnails', 0]),
'descriptionSnippet': await self._getValue(video, ['descriptionSnippet', 'runs']),
'descriptionSnippet': await self._getValue(video, ['detailedMetadataSnippets', 0, 'snippetText', 'runs']),
'channel': {
'name': await self._getValue(video, ['ownerText', 'runs', 0, 'text']),
'id': await self._getValue(video, ['ownerText', 'runs', 0, 'navigationEndpoint', 'browseEndpoint', 'browseId']),
Expand Down
2 changes: 1 addition & 1 deletion youtubesearchpython/handlers/componenthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _getVideoComponent(self, element: dict, shelfTitle: str = None) -> dict:
},
'thumbnails': self._getValue(video, ['thumbnail', 'thumbnails']),
'richThumbnail': self._getValue(video, ['richThumbnail', 'movingThumbnailRenderer', 'movingThumbnailDetails', 'thumbnails', 0]),
'descriptionSnippet': self._getValue(video, ['descriptionSnippet', 'runs']),
'descriptionSnippet': self._getValue(video, ['detailedMetadataSnippets', 0, 'snippetText', 'runs']),
'channel': {
'name': self._getValue(video, ['ownerText', 'runs', 0, 'text']),
'id': self._getValue(video, ['ownerText', 'runs', 0, 'navigationEndpoint', 'browseEndpoint', 'browseId']),
Expand Down