diff --git a/plugin/JustWatch/feed.json.php b/plugin/JustWatch/feed.json.php index dc4b6a38603b..16a99cee9918 100644 --- a/plugin/JustWatch/feed.json.php +++ b/plugin/JustWatch/feed.json.php @@ -29,11 +29,21 @@ $rows = Video::getAllVideosLight(); foreach ($rows as $row) { $element = array(); - $element['id'] = ''.$row['id']; + $element['id'] = '' . $row['id']; //$element['object_type'] = 'movie'; $element['object_type'] = 'movie'; $element['original_title'] = $row['title']; $element['original_description'] = $row['description']; + + $element['localized_titles'] = array('language' => 'en', 'value' => $element['original_title']); + $element['localized_descriptions'] = array('language' => 'en', 'value' => $element['original_description']); + $element['offers'] = array( + array( + 'web_url' => Video::getLinkToVideo($row['id']), + 'quality' => 'hd', + ) + ); + $element['images'] = array(); $posters = Video::getMediaSessionPosters($row['id']); foreach ($posters as $key => $value) { @@ -51,4 +61,4 @@ $array['last_modified'] = $formattedDate; -echo _json_encode($array); \ No newline at end of file +echo _json_encode($array);