Th3-822

[rapidleech][d] bestreams_net

May 22nd, 2015
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.53 KB | None | 0 0
  1. <?php
  2.  
  3. if (!defined('RAPIDLEECH')) {
  4.     require_once('index.html');
  5.     exit();
  6. }
  7.  
  8. if (!file_exists(HOST_DIR . 'download/GenericXFS_DL.php')) html_error('Cannot load "'.htmlentities(HOST_DIR).'download/GenericXFS_DL.php" (File doesn\'t exists)');
  9. require_once(HOST_DIR . 'download/GenericXFS_DL.php');
  10.  
  11. class bestreams_net extends GenericXFS_DL {
  12.     public $pluginVer = 6;
  13.     public function Download($link) {
  14.         $this->wwwDomain = false; // Switch to true if filehost forces it's domain with www.
  15.         $this->cname = 'xfss'; // Session cookie name
  16.         $this->sslLogin = false; // Force https on login.
  17.         $this->embedDL = true; // Try to unpack player's js for finding download link. (Only hosts with video player)
  18.         $this->unescaper = false; // Enable JS unescape decoder.
  19.         $this->customDecoder = true; // Enable pageDecoder()
  20.  
  21.         // Custom Download Regexp
  22.         $this->DLregexp = '@https?://(?:[\w\-]+\.)+[\w\-]+(?:\:\d+)?/\w{58}/[^\t\r\n<>\'\"\?\&]+@i';
  23.  
  24.         $this->Start($link);
  25.     }
  26.  
  27.     // Rapidleech doesn't support rtmp, so i must get to the real file, that it's somewhere.
  28.     protected function pageDecoder() {
  29.         if (preg_match('@(https?://(?:[\w\-]+\.)+[\w\-]+(?:\:\d+)?/)i/(?:[^/\s\"\'<>]+/)*\w{12}(_t)?\.jpe?g@i', $this->page, $SV) && preg_match('@[?&]h(?:ash)?=(\w+)@i', $this->page, $hash)) {
  30.             $DL = $SV[1] . $hash[1] . '/v.mp4'; // And that's how a XFS video download link is forged.
  31.             $this->page = str_replace($SV[0], $DL, $this->page, $count);
  32.             return ($count > 0 ? true : false);
  33.         }
  34.         return false;
  35.     }
  36. }
  37.  
  38. // Written by Th3-822.
  39.  
  40. ?>
Add Comment
Please, Sign In to add comment