From f6431751564fcab712e798ea31f2397b841b5c27 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 30 Jul 2019 10:12:41 -0500 Subject: [PATCH] Fix typo in video extractor --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 7abc8404..ea02b938 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -1187,7 +1187,7 @@ def fetch_video(id, region) title = player_json["videoDetails"]["title"].as_s author = player_json["videoDetails"]["author"]?.try &.as_s || "" - ucid = player_json["videoDetails"]["ucid"]?.try &.as_s || "" + ucid = player_json["videoDetails"]["channelId"]?.try &.as_s || "" views = html.xpath_node(%q(//meta[@itemprop="interactionCount"])) .try &.["content"].to_i64? || 0_i64