]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Fri, 23 Aug 2019 09:10:35 +0000 (11:10 +0200)
committerVincent <vincent@enhydra.fr>
Fri, 23 Aug 2019 09:10:35 +0000 (11:10 +0200)
.idea/workspace.xml
scripts/cron/cron.php
scripts/lib/tmdb.php
scripts/sections.php

index f5e408388371ff44b079f6a83be9846a1f5001f5..397d972a69ee0ed5c769e84ec5a5c92553587317 100644 (file)
@@ -3,10 +3,9 @@
   <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">
index 21b93d463f13192a30c9a1b5925f91516ff3d325..21f4d51e6b484e69713f33c97bd4f82e53f25927 100644 (file)
@@ -2,11 +2,6 @@
 
 require_once __DIR__ . "/../import.php";
 
-if (isset($_SERVER) && isset($_SERVER['HTTP_HOST'])) {
-    exit;
-    // cronOneLoop(0);
-}
-
 function cronOneLoop($cronmin)
 {
     set_time_limit(0);
index 784b87286248a9aed16a13c10076fc3c5db688dc..5be9dc9dff6c4207239ed71ea1884dc0e86cf9c2 100644 (file)
@@ -238,7 +238,7 @@ class tvShowLibrary extends mediaLibrary
 
                 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'];
                 }
@@ -443,7 +443,7 @@ class moviesLibrary extends mediaLibrary
     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)
index 1a7746fca84033ec63dda2cf1a11c37122e255db..99f76ffad4ca719e202538ccf66d355773b89de1 100644 (file)
@@ -3,4 +3,11 @@
 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