Skip to content

Commit

Permalink
Fix Twitch is_live.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Jan 2, 2022
1 parent 7be147c commit 84afc8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 84afc8e

Please sign in to comment.