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,