Skip to content

Commit

Permalink
TTK-27444: Display external videos in the api (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
albacodina authored Dec 19, 2024
1 parent c95bbd6 commit 55e77f8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ private function audioStreamInfo()

private function decodeMetadataInfo()
{
return json_decode($this->metadata(), false, 512, JSON_THROW_ON_ERROR);
if ($this->metadata()) {
return json_decode($this->metadata(), false, 512, JSON_THROW_ON_ERROR);
}
}
}

0 comments on commit 55e77f8

Please sign in to comment.