Ensure Hulu output is correct whether or not a video has both a series and a title associated with it.

This commit is contained in:
Andrew Tomaka 2011-10-16 04:15:48 -04:00
parent 1abf895b9e
commit 6a22a3580a

View file

@ -170,8 +170,8 @@ function hulu() {
$thumb); $thumb);
return array( return array(
'series' => isset($title[2]) ? $title[2] : 'Not Available', 'series' => isset($title[2]) ? $title[0] : 'Not Available',
'title' => $title[0], 'title' => isset($title[2]) ? $title[2] : $title[0],
'time' => strtotime($lastShow->pubDate), 'time' => strtotime($lastShow->pubDate),
'url' => (string)$lastShow->link, 'url' => (string)$lastShow->link,
'thumb' => $thumb[1], 'thumb' => $thumb[1],