Ejemplo n.º 1
0
/**
 */
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);
}
Ejemplo n.º 2
0
if (strpos($filelink, "vidxden") !== false || strpos($filelink, "divxden") !== false) {
    if (strpos($filelink, "embed") === false) {
        $t = explode("/", $filelink);
        $id = $t[3];
        $filelink = $t[0] . "/" . $t[1] . "/" . $t[2] . "/" . "embed-" . $id . "-width-653-height-362.html";
    }
    $h = file_get_contents($filelink);
    $link = get_unpack(1, 11, 5, $h);
} elseif (strpos($filelink, "vidbux") !== false) {
    if (strpos($filelink, "embed") === false) {
        $t = explode("/", $filelink);
        $id = $t[3];
        $filelink = $t[0] . "/" . $t[1] . "/" . $t[2] . "/" . "embed-" . $id . "-width-653-height-362.html";
    }
    $h = file_get_contents($filelink);
    $link = get_unpack(1, 8, 4, $h);
} elseif (strpos($filelink, 'movreel') !== false) {
    preg_match('/movreel\\.com\\/(embed\\/)?+([\\w\\-]+)/', $filelink, $m);
    $id = $m[2];
    $filelink = "http://movreel.com/embed/" . $id;
    $h = file_get_contents($filelink);
    $link = str_between($h, '<param name="src" value="', '"');
} elseif (strpos($filelink, 'videoweed') !== false) {
    if (strpos($filelink, "embed") !== false) {
        preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m);
        $id = $m[2];
        $s = explode("/", $filelink);
        $filelink = "http://" . $s[2] . "/embed.php?v=" . $id . "&amp;width=900&amp;height=600";
    }
    $h = file_get_contents($filelink);
    $link = str_between($h, 'file="', '"');