diff options
author | anekos | 2011-08-07 19:33:41 +0900 |
---|---|---|
committer | anekos | 2011-08-07 19:33:41 +0900 |
commit | 51a64b2484cba05b9e4952c82277fa868bcafc4f (patch) | |
tree | 113da1b6bcb3d24ccd98004dd8109d5a7cb613eb /stella.js | |
parent | d82717ee695339c076556e4092cb160194715127 (diff) | |
download | vimperator-plugins-51a64b2484cba05b9e4952c82277fa868bcafc4f.tar.bz2 |
Fix: YouTubePlayer#fetch.
Thanks, eagletmt!
https://gist.github.com/1129653
Diffstat (limited to 'stella.js')
-rw-r--r-- | stella.js | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -39,7 +39,7 @@ let PLUGIN_INFO = <name lang="ja">すてら</name> <description>For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).</description> <description lang="ja">ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description> - <version>0.32.8</version> + <version>0.32.9</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -967,8 +967,12 @@ Thanks: // all(1080p,720p,480p,360p) -> 37, 22, 35, 34, 5 // FIXME 一番初めが最高画質だと期待 let cargs = content.wrappedJSObject.yt.config_.PLAYER_CONFIG.args; - let url = decodeURIComponent(cargs.fmt_url_map.split(',')[0].split('|')[1]); - U.download(url, filepath, '.flv', this.title); + cargs.url_encoded_fmt_stream_map.split(',')[0].split('&').forEach(function(x) { + let [key, val] = x.split('='); + if (key == 'url') { + U.download(decodeURIComponent(val), filepath, '.flv', this.title); + } + }, this); }, makeURL: function (value, type) { |