Mercurial > libervia-web
diff libervia.tac @ 129:dd0d39ae7d24
RadioCol: song preloading + fonctionnal players
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 29 Jan 2012 00:15:04 +0100 |
parents | 2849ec993d89 |
children | 6576c5a90060 |
line wrap: on
line diff
--- a/libervia.tac Mon Jan 23 00:15:19 2012 +0100 +++ b/libervia.tac Sun Jan 29 00:15:04 2012 +0100 @@ -640,7 +640,7 @@ - except login, every method is jsonrpc - user doesn't need to be authentified for isRegistered, but must be for all other methods """ - filename = str(uuid.uuid4()) + filename = "%s.ogg" % str(uuid.uuid4()) #XXX: chromium doesn't seem to play song without the .ogg extension, even with audio/ogg mime-type filepath = os.path.join(self.upload_dir, filename) with open(filepath,'w') as f: f.write(request.args['song'][0])