Пример #1
0
                 if (!is_bool($torrents)) {
                     $mediainfo = new \model\simple\Mediainfo($file);
                     $mediainfo = $mediainfo->getFormatVideo();
                     //$torrentf->mediainfo = json_encode($mediainfo);
                     \model\simple\Console::println($torrents->fini($mediainfo) ? "Sav ok" : "Sav Non ok");
                 }
                 break;
         }
         $numfile++;
     }
 } else {
     $file = dirname($base_path) . DS . $info['name'];
     \model\simple\Console::println($file);
     switch ($typemedias) {
         case "film":
             $torrentf = \model\mysql\Torrentfilm::rechercheParNumFileHashClefunique($numfile, $hash, $clefunique);
             \model\simple\Console::println(is_bool($torrentf) ? "Non Présent" : "Présent");
             if (!is_bool($torrentf)) {
                 $mediainfo = new \model\simple\Mediainfo($file);
                 $mediainfo = $mediainfo->getFormatVideo();
                 \model\simple\Console::println($torrentf->fini($mediainfo) ? "Sav ok" : "Sav Non ok");
             }
             break;
         case "serie":
             $torrents = \model\mysql\Torrentserie::rechercheParNumFileHashClefunique($numfile, $hash, $clefunique);
             \model\simple\Console::println(is_bool($torrents) ? "Non Présent" : "Présent");
             if (!is_bool($torrents)) {
                 $mediainfo = new \model\simple\Mediainfo($file);
                 $mediainfo = $mediainfo->getFormatVideo();
                 //$torrentf->mediainfo = json_encode($mediainfo);
                 \model\simple\Console::println($torrents->fini($mediainfo) ? "Sav ok" : "Sav Non ok");
Пример #2
0
 function tfilm()
 {
     \model\mysql\Torrentfilm::rechercheParNumFileHashClefunique(0, 'FA0C487D79DD07DB1BE85E9639D9E5B112DD39EE', '9JkOBaF1Hs');
     //\model\mysql\Torrentfilm::addTorrentFilm("wHOXNvBDDy", "0", "ddd", "salorium", "BigTerra2", "dd", "a", false);
 }