Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jun 28, 2024
1 parent 53a96e3 commit 890d84a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/JustWatch/feed.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
$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['images'] = array();
$posters = Video::getMediaSessionPosters($row['id']);
foreach ($posters as $key => $value) {

$element['images'][] = array(
'url' => $value['url'],
'image_type' => 'poster',
'width' => $key,
'height' => $key,
//'language' => 'en',
'language' => 'en',
);
$array['contents'][] = $element;
}
Expand Down

0 comments on commit 890d84a

Please sign in to comment.