Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2. $url = explode("?v=",$_REQUEST['v'])[1] ;
  3. if ( !preg_match("/^[-_a-zA-Z0-9.]+$/", $url) )
  4. die() ;
  5. $shhl = 'youtube-dl -q --ffmpeg-location /usr/local/sbin/ffmpeg --write-auto-sub --embed-subs --convert-subs ass --merge-output-format mkv -o \'%(title)s.%(ext)s\' '.$url.' --audio-format opus --audio-quality 48k -f " bestvideo[ext=webm][height <=? 360 ]+worstaudio[ext=webm]/bestvideo[ext=mp4][height <=? 480 ]+worstaudio[ext=webm]" --external-downloader axel --external-downloader-args " -U \'Mozilla\' -n 7 " --restrict-filenames 2>/dev/null >/dev/null & ' ;
  6. shell_exec( $shhl ) ;
  7. header( 'Location: '. $url ) ; exit () ;
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement