# HG changeset patch # User Nicholas Jillings # Date 1464872165 -3600 # Node ID aca96a5183be368ea19ac9f44897ce50b6570a27 # Parent bae25b417c2c09921ac27bd3870ef064346559d5 Minor fix for #68. Disable loudness.js for mobile iOS #12 diff -r bae25b417c2c -r aca96a5183be js/loudness.js --- a/js/loudness.js Thu Jun 02 10:23:31 2016 +0100 +++ b/js/loudness.js Thu Jun 02 13:56:05 2016 +0100 @@ -19,7 +19,9 @@ // timescale -> M or Momentary (returns Array), S or Short (returns Array), // I or Integrated (default, returns number) // target -> default is -23 LUFS but can be any LUFS measurement. - + if(navigator.platform == 'iPad' || navigator.platform == 'iPhone') { + buffer.ready(); + } if (buffer == undefined) { return 0; diff -r bae25b417c2c -r aca96a5183be python/pythonServer.py --- a/python/pythonServer.py Thu Jun 02 10:23:31 2016 +0100 +++ b/python/pythonServer.py Thu Jun 02 13:56:05 2016 +0100 @@ -60,7 +60,7 @@ lenSt = len(st) fmt = st[lenSt-1].rsplit('.') fpath = "../"+urllib2.unquote(s.path) - size = path.getsize(fpath) + size = os.path.getsize(fpath) fileDump = open(fpath) s.send_response(200)