From 84afc8e5d955f71e177d2ae407a74b453ebdb573 Mon Sep 17 00:00:00 2001 From: Stefan Sundin Date: Sat, 1 Jan 2022 18:56:16 -0800 Subject: [PATCH] Fix Twitch is_live. --- app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index 6fc6989..3211a8f 100644 --- a/app.rb +++ b/app.rb @@ -1151,7 +1151,7 @@ "id" => video["id"], "created_at" => video["created_at"], "published_at" => video["published_at"], - "is_live" => !video.has_key?("thumbnail_url"), + "is_live" => video["thumbnail_url"].empty?, "type" => video["type"], "title" => video["title"].strip, "description" => video["description"].strip, @@ -1192,7 +1192,7 @@ "id" => video["id"], "created_at" => video["created_at"], "published_at" => video["published_at"], - "is_live" => !video.has_key?("thumbnail_url"), + "is_live" => video["thumbnail_url"].empty?, "type" => video["type"], "title" => video["title"].strip, "description" => video["description"].strip,