コード例 #1
0
ファイル: engines.php プロジェクト: NetOverflow/ruTorrent
 protected static function correctItem(&$nfo)
 {
     if (empty($nfo["time"])) {
         $nfo["time"] = 0;
     }
     if (empty($nfo["size"])) {
         $nfo["size"] = 0;
     }
     if (empty($nfo["seeds"])) {
         $nfo["seeds"] = 0;
     }
     if (empty($nfo["peers"])) {
         $nfo["peers"] = 0;
     }
     if (isInvalidUTF8($nfo["name"])) {
         $nfo["name"] = commonEngine::toUTF($nfo["name"], "ISO-8859-1");
     }
 }
コード例 #2
0
ファイル: Nyaa.php プロジェクト: limerainne/ruTorrent
 public function makeClient($url)
 {
     $client = parent::makeClient($url);
     return $client;
 }
コード例 #3
0
ファイル: Torrentz.php プロジェクト: chaitanya11/rtorrent
 public function makeClient($url)
 {
     $client = parent::makeClient($url);
     $client->cookies = array("lw" => "s");
     return $client;
 }