/** */ function fetchMovie($movie, $title, $image) { $template = new HdboxTemplate(); $template->setMovieTitle($title); $template->setImage($image); //Parse movie page $content = file_get_contents("http://hd-box.org" . $movie); $newlines = array("\t", "\n", "\r", " ", "", "\v"); $content = str_replace($newlines, "", html_entity_decode($content, ENT_QUOTES, "UTF-8")); preg_match("/<div class=\"element element-textareafirst\"><div><p align=\"justify\"><font size=\"3\" face=\"arial\">(.*)<\\/font><\\/p><\\/div><\\/div>/U", $content, $desc); $description = $desc; $template->setDescription($description[1]); //Get LOOMBO.COM preg_match("/src=\\'http:\\/\\/loombo.com\\/(.*)\\'/U", $content, $popup); //var_dump($popup); $content = file_get_contents("http://loombo.com/" . $popup[1]); //var_dump($content); preg_match("/\\(\\'flashvars\\',\\'file=(.*)\\'\\)\\;/U", $content, $links); //var_dump($links); if ($links) { $link = $links[1]; $template->addMediaItem(substr($link, strrpos($link, "/") + 1), utf8_decode($description[1]), $link, "", VideoUtil::getEnclosureMimetype($link)); } /* Get Vidbux //var_dump($content); preg_match("/SRC=\"http:\/\/www.vidbux.com\/(.*)\"/U", $content, $popup); //var_dump($popup); $content = file_get_contents("http://vidbux.com/".$popup[1]); preg_match("/flashvars=\"file=(.*)&type=(.*)\"/U", $content, $links); var_dump($links); if($links) { $link = $links[1]; $template->addMediaItem( substr($link, strrpos($link,"/")+1), utf8_decode($description[1]), $link, "", VideoUtil::getEnclosureMimetype($link) ); } */ $template->generateView(HdboxTemplate::VIEW_MOVIE_DETAIL); }
/** */ function fetchMovie($movie, $title, $image) { $template = new HdboxTemplate(); $template->setMovieTitle($title); //Parse movie page $content = getContent("hd-box.org", $movie); //print_r( $content ); preg_match("/<div class=\"element element-image first\"><a href=\"(.*)\" title=\"(.*)\"><img src=\"(.*)\"/U", $content, $image); $image = $image[3]; //print_r($image); $template->setImage($image); // <h3>Inhalt</h3><div><p align="justify"><font size="3" face="arial">Beschreibung</font> preg_match("/<h3>Inhalt<\\/h3><div><p align=\"justify\"><font size=\"3\" face=\"arial\">(.*)<\\/font>/U", $content, $desc); $description = $desc[1]; $template->setDescription($description); //Get LOOMBO.COM //src="http://loombo.com/embed-8f4pg7qrpj9s-640x318.html" preg_match("/<center><h3>Loombo<\\/h3><script type='text\\/javascript'>(.*)<\\/script><\\/div>/U", $content, $jsloombo); //var_dump($jsloombo); preg_match("/loombo\\('(.*)'\\)/siU", $jsloombo[1], $encrloombo); // var_dump($encrloombo); $popup = getContent("hd-box.org", "/i.php?alink=" . $encrloombo[1]); //var_dump($popup); $loombocontent = file_get_contents("http://loombo.com/embed-" . $popup . "-640x318.html", false, $context); // s1.addVariable('file','http://82.199.140.10:182/d/bvqqlstdyk7ad7db7un7hlawylvu7izjy5xuunbpbkto6e3w6ogpzzu6/video.flv'); preg_match("/s1\\.addVariable\\(\\'file\\',\\'(.*)\\'\\)\\;/U", $loombocontent, $links); //print_r($links); if ($links) { $link = $links[1]; $template->addMediaItem("LOOMBO: " . substr($link, strrpos($link, "/") + 1), utf8_decode($description), $link, "", VideoUtil::getEnclosureMimetype($link)); } /* Get Vidbux */ preg_match("/<center><h3>Vidbux<\\/h3><script type='text\\/javascript'>(.*)<\\/script>/U", $content, $match); $t1 = explode("innerHTML|u0075|u002D", $match[0]); $t2 = explode("|", $t1[1]); $id = $t2[0]; $filelink = "http://www.vidbux.com/embed-" . $id . "-width-653-height-362.html"; $h = file_get_contents($filelink); $link = get_unpack(1, 8, 4, $h); if ($link != "") { $template->addMediaItem("Vidbux: " . substr($link, strrpos($link, "/") + 1), utf8_decode($description), $link, "", VideoUtil::getEnclosureMimetype($link)); } /* Get Vidxden */ preg_match("/<center><h3>Vidxden<\\/h3><script type='text\\/javascript'>(.*)<\\/script>/U", $content, $match); $t1 = explode("innerHTML|u002D", $match[0]); $t2 = explode("|", $t1[1]); $id = $t2[0]; $filelink = "http://www.vidxden.com/embed-" . $id . "-width-653-height-362.html"; $h = file_get_contents($filelink); $link = get_unpack(1, 11, 5, $h); if ($link != "") { $template->addMediaItem("Vidxden: " . substr($link, strrpos($link, "/") + 1), utf8_decode($description[1]), $link, "", VideoUtil::getEnclosureMimetype($link)); } $template->generateView(HdboxTemplate::VIEW_MOVIE_DETAIL); }