Th3-822 icon

[rapidleech][d] idup_in

Th3-822 | PRO | 10/19/15 02:44:12 AM UTC | 0 ⭐ | 441 👁️ | Never ⏰ | []
PHP |

1.2 KB

|

None

|

0 👍

/

0 👎

<?php
 
if (!defined('RAPIDLEECH')) {
    require_once('index.html');
    exit();
}
 
if (!file_exists(HOST_DIR . 'download/GenericXFS_DL.php')) html_error('Cannot load "'.htmlentities(HOST_DIR).'download/GenericXFS_DL.php" (File doesn\'t exists)');
require_once(HOST_DIR . 'download/GenericXFS_DL.php');
 
class idup_in extends GenericXFS_DL {
    public $pluginVer = 6;
    public function Download($link) {
        $this->wwwDomain = false; // Switch to true if filehost forces it's domain with www.
        $this->cname = 'xfss'; // Session cookie name
        $this->sslLogin = false; // Force https on login.
        $this->embedDL = true; // Try to unpack player's js for finding download link. (Only hosts with video player)
        $this->unescaper = false; // Enable JS unescape decoder.
 
        $this->Start($link);
    }
 
    protected function getFileName($url) {
        $fname = parent::getFileName($url);
        if (preg_match("@^(?:v(?:ideo)|{$this->fid})?\.(mp4|flv)$@i", $fname, $vExt) && preg_match('@Filename:?\s*<b>\s*([^\s<>\"\']+)\s*</b>@i', $this->page, $title)) {
            $fname = preg_replace('@\.(mp4|flv|mkv|webm|wmv|(m2)?ts|rm(vb)?|mpe?g?|vob|avi|[23]gp)$@i', '', trim($title[1])) . '_S.' . strtolower($vExt[1]);
        }
        return $fname;
    }
}
 
// Written by Th3-822.
 
?>

Comments