christopherjkim/natf2 — comment on commit f6cb27cd4241b6b4610ad40e4cfa55c89f2c7ca0
File: app/models/stream.rb line 20
By qpingu:

Likewise:

current_viewers = response["own3dReply"]["liveEvent"]["liveViewers"] rescue nil
is_live = response["own3dReply"]["liveEvent"]["isLive"] rescue false

self.update_attributes(:viewers => current_viewers, :live => is_live)