We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This' my script ****************************************************** <?php set_time_limit(0); /* This script searches folders named in the film, if the subtitle there. if not, look for the download link and download from www.subdivx.com */ include('ganon.php'); include('explorarSRT.php'); $dir = opendir("."); $search = "http://www.subdivx.com/index.php?accion=5&masdesc=&oxfecha=2&buscar="; while($file = readdir($dir)){ if(is_dir($file)){ if($file != ".." && $file != "."){ // $file = "Persecuted (2014)"; $haySub = new bajarSubtitulo($file); if($haySub->hay() == false){ //this return false if the movie dont have subtitle in folder try{ $carp = explode(" ",$file); $se = ""; for($i=0;$i<count($carp);$i++){ $se .= $carp[$i]; if($i < count($carp)-1){ $se .= "+"; } } // $se = "+Persecuted+(2014)"; $inf = $search . $se; echo $file . "<br>"; $html = file_get_dom($inf); // echo "<pre>"; $sinSub = count($html('#detalle_ficha')); if($sinSub == 0){ foreach($html('div#buscador_detalle') as $div){ $yifi = strrpos($div->getChild(1)->html(),"yify"); $yifi2 = strrpos($div->getChild(1)->html(),"YIFY"); $addw = strrpos($div->getChild(1)->html(), "googleAddAdSenseService"); if($yifi != false && $addw === false || $yifi2 != false && $addw === false) { $link = $div->getChild(2); echo @$link->getChild(12)->href."<br>"; echo @$link->getChild(13)->href."<br>"; echo @$link->getChild(14)->href."<br>"; echo @$link->getChild(15)->href."<br>"; echo @$link->getChild(16)->href."<br>"; echo @$link->getChild(17)->href."<br>"; echo @$link->getChild(18)->href."<br>"; echo @$link->getChild(19)->href."<br>"; echo @$link->getChild(20)->href."<br>"; } } } // echo "</pre>"; // $html->delete(); }catch (Exception $e) { $html->delete(); echo 'ERROR: ', $e->getMessage(), "\n"; } // $html->delete(); // unset($html,$yify,$link,$addw); } unset($haySub); } } } closedir($dir); *************************************************** ERROR ***** Warning: Creating default object from empty value in ganon.php on line 1022 Fatal error: Call to undefined method stdClass::delete() in ganon.php on line 1023 The error always appears when the loop reaches the sixth lap. Meanwhile works perfectly.
Original issue reported on code.google.com by ramonear...@gmail.com on 25 Oct 2014 at 3:21
ramonear...@gmail.com
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Original issue reported on code.google.com by
ramonear...@gmail.com
on 25 Oct 2014 at 3:21The text was updated successfully, but these errors were encountered: