From cea9b63ecad59f938103e87244a18e9cee7d4be1 Mon Sep 17 00:00:00 2001 From: pluja Date: Thu, 10 Sep 2020 02:32:40 +0200 Subject: [PATCH] Add channelId --- youtube_data/videos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_data/videos.py b/youtube_data/videos.py index ff3afac..fb93d51 100644 --- a/youtube_data/videos.py +++ b/youtube_data/videos.py @@ -68,7 +68,7 @@ def get_video_owner_info(data): ownerInfo = { "thumbnail": ownerItem['thumbnail']['thumbnails'][0]['url'], "username": ownerItem['title']['runs'][0]['text'], - "id": "#", + "id": ownerItem['title']['runs'][0]['navigationEndpoint']['browseEndpoint']['browseId'], "suscriberCount":ownerItem['subscriberCountText']['runs'][0]['text'] } return ownerInfo