<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$/config/chambre.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/chambre.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/config/music.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/music.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/ecomode.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/ecomode.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/ecomode.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/ecomode.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/redis.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/redis.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/shield.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/shield.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/tmdb.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/tmdb.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1609698147260" duration="38000" />
<workItem from="1609950754201" duration="3352000" />
<workItem from="1610050680817" duration="1480000" />
- </task>
- <task id="LOCAL-00380" summary=".">
- <created>1605093966322</created>
- <option name="number" value="00380" />
- <option name="presentableId" value="LOCAL-00380" />
- <option name="project" value="LOCAL" />
- <updated>1605093966322</updated>
+ <workItem from="1610202160108" duration="2175000" />
+ <workItem from="1610280280433" duration="6883000" />
</task>
<task id="LOCAL-00381" summary=".">
<created>1605094978427</created>
<option name="project" value="LOCAL" />
<updated>1609681610454</updated>
</task>
- <option name="localTasksCounter" value="429" />
+ <task id="LOCAL-00429" summary=".">
+ <created>1610202214223</created>
+ <option name="number" value="00429" />
+ <option name="presentableId" value="LOCAL-00429" />
+ <option name="project" value="LOCAL" />
+ <updated>1610202214223</updated>
+ </task>
+ <option name="localTasksCounter" value="430" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
$players = ['Salon' => 'salon', 'Bureau' => 'bureau'];
foreach ($players as $player => $device) {
if (getSqueezePlayerStatus($player) === -1) {
- if(!shieldPlayingVideo($device)) {
+ if (!shieldPlayingVideo($device)) {
shieldRunAppAndBackHome('sbplayer', $device, 1, true);
sleep(5);
}
function cronPodcasts($cronmin)
{
- _logSection('Podcasts');
checkSpottyLogin();
+ return;
+ _logSection('Podcasts');
$podcasts = getSqueezeFavorites(0, 'podcasts');
if ($podcasts !== false && count($podcasts) > 0) {
connectRedis()->igbset('squeezebox_podcasts', $podcasts);
function shieldMyCanal($channel = false, $type = 'live', $device = null)
{
shieldRunActivity($device);
+ shieldKill('mycanal', $device);
if ($type === 'replay') {
if ($channel === 'arte') {
shieldArte($device);
echo shieldCommand('shell pm list', 'packages -f', $device);
}
-function shieldFindIntents($app, $device)
+function shieldFindIntents($app, $device = null)
{
$app = shieldGetAppId($app);
shieldCommand('shell pm dump', $app, $device);
if ($f->isDir() || strpos($f->getFilename(), '.tmdb.id') === false) {
continue;
}
+
$file = str_replace('.tmdb.id', '', $f->getPathname());
- $dir = file_exists($file) && is_file($file) ? file_get_contents($file) : $f->getPath();
- $id = file_get_contents($f->getPathname());
- $this->tvShows[] = ['type' => 'tvshow', 'dir' => $dir, 'data' => $this->getTVShowByID($id), 'id' => $id, 'mtime' => $this->dirfilemtime($f->getPath(), true)];
+ $id = file_get_contents($f->getPathname() . '');
+ $data = $this->getTVShowByID($id);
+ $edate = explode('-', $data['last_air_date']);
+ $mtime = gmmktime(12, 0, 0, $edate[1], $edate[2], $edate[0]);
+
+ if (file_exists($file.'.netflix')) {
+ $dir = 'netflix:' . file_get_contents($file.'.netflix');
+ } else {
+ $dir = file_exists($file) && is_file($file) ? file_get_contents($file) : $f->getPath();
+ }
+
+ $data = $this->getTVShowByID($id);
+ $this->tvShows[] = ['type' => 'tvshow', 'dir' => $dir, 'data' => $data, 'id' => $id, 'mtime' => $mtime];
}
}
return $lastModified;
}
- public function _poster($path, $alt='')
+ public function _poster($path, $alt = '')
{
if (null === $path || $path === '') {
- if($alt===''){
+ if ($alt === '') {
return '';
}
- return cacheMedia('/volume1/Share/'.$alt);
+ return cacheMedia('/volume1/Share/' . $alt);
} else {
return cacheMedia('https://image.tmdb.org/t/p/w500' . $path);
}