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*\s*([^\s<>\"\']+)\s*@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. ?>