From 49d0a7cbf7f10daf4142084396eabbede8160259 Mon Sep 17 00:00:00 2001 From: wlt Date: Fri, 13 Jul 2012 00:40:50 +0900 Subject: Fix :stfetch on YouTube --- stella.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stella.js') diff --git a/stella.js b/stella.js index 65c617b..88b7dd1 100644 --- a/stella.js +++ b/stella.js @@ -1031,7 +1031,7 @@ Thanks: fetch: function (filepath) { // all(1080p,720p,480p,360p) -> 37, 22, 35, 34, 5 // FIXME 一番初めが最高画質だと期待 - let cargs = content.wrappedJSObject.yt.config_.PLAYER_CONFIG.args; + let cargs = content.wrappedJSObject.yt.playerConfig.args; cargs.url_encoded_fmt_stream_map.split(',')[0].split('&').forEach(function(x) { let [key, val] = x.split('='); if (key == 'url') { @@ -1160,7 +1160,7 @@ Thanks: fetch: function (filepath) { // all(1080p,720p,480p,360p) -> 37, 22, 35, 34, 5 // FIXME 一番初めが最高画質だと期待 - let cargs = content.wrappedJSObject.yt.config_.PLAYER_CONFIG.args; + let cargs = content.wrappedJSObject.yt.playerConfig.args; cargs.url_encoded_fmt_stream_map.split(',')[0].split('&').forEach(function(x) { let [key, val] = x.split('='); if (key == 'url') { -- cgit v1.2.3