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 890d84a commit 020cad7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions plugin/JustWatch/feed.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -51,4 +61,4 @@

$array['last_modified'] = $formattedDate;

echo _json_encode($array);
echo _json_encode($array);

0 comments on commit 020cad7

Please sign in to comment.