diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2015-07-13 22:54:20 -0500 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2015-07-13 22:54:20 -0500 |
commit | 3d2f2cbc6f20a5bb9cb2eba3dfccb6b4986a0d04 (patch) | |
tree | 01353611f4f1d5f7c1c68e5722c4d6a2314cb600 /data/extensions/html5-video-everywhere@lejenome.me/resources/html5-video-everywhere/lib/flashgot-YouTube.js | |
parent | 240c29c1d9cf6a2adfad8692917d60cde071cce3 (diff) |
HTML5 Video Everywhere updated to 0.2.38.1
Diffstat (limited to 'data/extensions/html5-video-everywhere@lejenome.me/resources/html5-video-everywhere/lib/flashgot-YouTube.js')
-rw-r--r-- | data/extensions/html5-video-everywhere@lejenome.me/resources/html5-video-everywhere/lib/flashgot-YouTube.js | 5 |
1 files changed, 4 insertions, 1 deletions
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];
|