<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/pcgames.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/pcgames.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/mediarasp.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/mediarasp.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/tmdb.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/tmdb.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/remotecmd.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/remotecmd.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/tmdb.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/tmdb.php" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<workItem from="1571379187683" duration="3078000" />
<workItem from="1571384814081" duration="5000" />
<workItem from="1571569117453" duration="4627000" />
- <workItem from="1571594532253" duration="924000" />
- </task>
- <task id="LOCAL-00188" summary=".">
- <created>1562433498333</created>
- <option name="number" value="00188" />
- <option name="presentableId" value="LOCAL-00188" />
- <option name="project" value="LOCAL" />
- <updated>1562433498333</updated>
+ <workItem from="1571594532253" duration="3323000" />
</task>
<task id="LOCAL-00189" summary=".">
<created>1562436226860</created>
<option name="project" value="LOCAL" />
<updated>1571574019435</updated>
</task>
- <option name="localTasksCounter" value="237" />
+ <task id="LOCAL-00237" summary=".">
+ <created>1571595588959</created>
+ <option name="number" value="00237" />
+ <option name="presentableId" value="LOCAL-00237" />
+ <option name="project" value="LOCAL" />
+ <updated>1571595588959</updated>
+ </task>
+ <option name="localTasksCounter" value="238" />
<servers />
</component>
<component name="TodoView">
} else if ($device == 'bureau') {
execScene('bureau/auto');
}
-
return;
} else if ($cmd == 'light-down') {
if ($device == 'salon') {
global $directories;
$library = new tvShowLibrary($directories, $forceapi);
$res = $library->getShortcuts();
- connectRedis()->igbset('medialibrary.tvshows', $res);
+ connectRedis()->igbsetex('medialibrary.tvshows',259200, $res);
return $res;
}
$res = connectRedis()->igbget('medialibrary.tvshows');
global $directories;
$library = new moviesLibrary($directories, $force);
$res = $library->getShortcuts();
- connectRedis()->igbset('medialibrary.movies', $res);
+ connectRedis()->igbsetex('medialibrary.movies',259200 , $res);
return $res;
}
$res = connectRedis()->igbget('medialibrary.movies');
try {
$tv = $client->getTvApi()->getTvshow($id, ['language' => 'fr-FR']);
- connectRedis()->igbset('tmdb.tv.' . $id, $tv);
+ connectRedis()->igbsetex('tmdb.tv.' . $id,259200, $tv);
return $tv;
} catch (Exception $e) {
echo $e->getMessage();
$client = getTmbdClient();
try {
$movie = $client->getMoviesApi()->getMovie($id, ['language' => 'fr-FR']);
- connectRedis()->igbset('tmdb.movie.' . $id, $movie);
+ connectRedis()->igbsetex('tmdb.movie.' . $id,259200, $movie);
return $movie;
} catch (Exception $e) {
return null;
// We first try to send it to salon raspberry before sending a less robust ir command
if (!remoteCmd($cmd, $_GET['device'])) {
if ($_GET['device'] == 'salon') {
+ echo 'run '.$cmd.' with harmony';
harmonyRequest('commands/' . $cmd, 'POST');
- }
+ }else{
+ echo 'ok';
+ }
}
\ No newline at end of file
<?php
require_once 'import.php';
-_getTVShows(true);
-_getMovies(true);
-_getMediaRecentAdded(true);
+_getTVShows(true, true);
+_getMovies(true, true);
+_getMediaRecentAdded(true, true);
parseMoviesLibrary();
\ No newline at end of file