Created
June 11, 2014 23:29
-
-
Save judsonbsilva/d2d88397fbac375af890 to your computer and use it in GitHub Desktop.
Download youtube video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
decodeURIComponent(ytplayer.config.args['url_encoded_fmt_stream_map']).split(',').map(function(url){return [url.replace(/.+https/,'https'),url.replace(/.+\?/,'').split('&').pop().split(';').shift()];}).filter(function(link,i){ return (/^https/).test(link[0]) ? link: null; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment