From d2fe95e0cca4aa53f8b53daf957ef0d1547cadbe Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 12 Dec 2018 13:28:54 +0000 Subject: [PATCH] Fix missing change to new Response objects from utils.http.request (youtube.py) --- modules/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/youtube.py b/modules/youtube.py index 70fae777..6f7f041a 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -28,9 +28,9 @@ class Module(ModuleManager.BaseModule): snippet = self.get_video_page(video_id, "snippet") if snippet.data["items"]: snippet = snippet.data["items"][0]["snippet"] - statistics = self.get_video_page(video_id, "statistics")[ + statistics = self.get_video_page(video_id, "statistics").data[ "items"][0]["statistics"] - content = self.get_video_page(video_id, "contentDetails")[ + content = self.get_video_page(video_id, "contentDetails").data[ "items"][0]["contentDetails"] video_uploader = snippet["channelTitle"] video_title = snippet["title"]