Exemplo n.º 1
0
 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");
     }
 }
Exemplo n.º 2
0
 public function makeClient($url)
 {
     $client = parent::makeClient($url);
     return $client;
 }
Exemplo n.º 3
0
 public function makeClient($url)
 {
     $client = parent::makeClient($url);
     $client->cookies = array("lw" => "s");
     return $client;
 }