From 3d2f2cbc6f20a5bb9cb2eba3dfccb6b4986a0d04 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Mon, 13 Jul 2015 22:54:20 -0500 Subject: HTML5 Video Everywhere updated to 0.2.38.1 --- .../resources/html5-video-everywhere/lib/flashgot-YouTube.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data/extensions/html5-video-everywhere@lejenome.me/resources/html5-video-everywhere/lib/flashgot-YouTube.js') diff --git a/data/extensions/html5-video-everywhere@lejenome.me/resources/html5-video-everywhere/lib/flashgot-YouTube.js b/data/extensions/html5-video-everywhere@lejenome.me/resources/html5-video-everywhere/lib/flashgot-YouTube.js index 9e9e1da..3507fb8 100644 --- a/data/extensions/html5-video-everywhere@lejenome.me/resources/html5-video-everywhere/lib/flashgot-YouTube.js +++ b/data/extensions/html5-video-everywhere@lejenome.me/resources/html5-video-everywhere/lib/flashgot-YouTube.js @@ -15,11 +15,12 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ***** END LICENSE BLOCK *****/ /* Modified By Moez Bouhlel to be used on HTML5-Video-EveryWhere */ /* jshint laxbreak:true, maxstatements:false, evil:true, latedef:false */ +/* jshint maxdepth:4 */ /* jshint maxcomplexity:false, -W116 */ /* global args:false */ "use strict"; @@ -491,6 +492,8 @@ Youtube.fix_signature = function(data, fmts, swf_url, cb) { if (sig) { fg.log("Fmt", itag, "url fixed:", sig); fmts[itag].url += "&signature=" + encodeURIComponent(sig); + if(!sig.match(/^[0-9A-Z]{40}\.[0-9A-Z]{40}$/)) + fg.setPref("media.YouTube.decode_signature_func", ""); } else { fg.log("Failed to fix fmt", itag, "signature"); delete fmts[itag]; -- cgit v1.2.3