<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/lib/lib.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/lib.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.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$/style/style.css" beforeDir="false" afterPath="$PROJECT_DIR$/style/style.css" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/style/style.less" beforeDir="false" afterPath="$PROJECT_DIR$/style/style.less" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/sections.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/sections.php" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<workItem from="1566376145799" duration="4963000" />
<workItem from="1566402117063" duration="1534000" />
<workItem from="1566458804773" duration="6134000" />
- <workItem from="1566546848697" duration="1228000" />
- </task>
- <task id="LOCAL-00162" summary=".">
- <created>1551086052431</created>
- <option name="number" value="00162" />
- <option name="presentableId" value="LOCAL-00162" />
- <option name="project" value="LOCAL" />
- <updated>1551086052431</updated>
+ <workItem from="1566546848697" duration="3684000" />
</task>
<task id="LOCAL-00163" summary=".">
<created>1551088282322</created>
<option name="project" value="LOCAL" />
<updated>1566546729894</updated>
</task>
- <option name="localTasksCounter" value="211" />
+ <task id="LOCAL-00211" summary=".">
+ <created>1566548210701</created>
+ <option name="number" value="00211" />
+ <option name="presentableId" value="LOCAL-00211" />
+ <option name="project" value="LOCAL" />
+ <updated>1566548210701</updated>
+ </task>
+ <option name="localTasksCounter" value="212" />
<servers />
</component>
<component name="TodoView">
if ($exists) {
$path = $this->_path($exists);
- $res['subs']['sub-' . $subname][] = ['label' => $es, 'type' => 'media', 'seen' => $this->_seen($path), 'path' => $path];
+ $res['subs']['sub-' . $subname][] = ['label' => $es, 'type' => 'media', 'srt' => hasSRT($path), 'seen' => $this->_seen($path), 'path' => $path];
} else {
$res['subs']['sub-' . $subname][] = ['label' => $es, 'type' => 'missing'];
}
public function shortcut($movie, $prefix, &$res)
{
$path = $this->_path($movie['path']);
- $res[] = ['label' => $movie['data']['title'], 'type' => 'media', 'seen' => $this->_seen($path), 'path' => $path, 'poster' => cacheMedia('https://image.tmdb.org/t/p/w500' . $movie['data']['poster_path'])];
+ $res[] = ['label' => $movie['data']['title'], 'type' => 'media', 'seen' => $this->_seen($path), 'srt' => hasSRT($path), 'path' => $path, 'poster' => cacheMedia('https://image.tmdb.org/t/p/w500' . $movie['data']['poster_path'])];
}
public function _orderMovies($a, $b)
define('DISPLAYINTERFACE', false);
require_once "import.php";
header('Content-type: application/json');
-echo connectRedis()->igbget('shortcuts.' . getCurrentConfig());
\ No newline at end of file
+$key = 'shortcuts.' . getCurrentConfig();
+if (isset($_GET['force'])) {
+ connectRedis()->del($key);
+ require_once "cron/cron.php";
+ cronMediaLibrary(0);
+ file_get_contents('https://' . getCurrentConfig() . '.home.tortuga.enhydra.fr');
+}
+echo connectRedis()->igbget($key);
\ No newline at end of file