Fix template {hz}

This commit is contained in:
kPherox 2019-03-19 22:07:49 +09:00
parent 216191563e
commit 6e9b0b4d10
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -151,11 +151,11 @@ function nowplaying(mode){
var regExp = new RegExp("{composer}", "g"); var regExp = new RegExp("{composer}", "g");
content = content.replace(regExp, arg.composer); content = content.replace(regExp, arg.composer);
var regExp = new RegExp("{hz}", "g"); var regExp = new RegExp("{hz}", "g");
content = content.replace(regExp, arg.sampleRate/1000+"kHz");
var regExp = new RegExp("{lyricist}", "g"); var regExp = new RegExp("{lyricist}", "g");
content = content.replace(regExp, ""); content = content.replace(regExp, "");
var regExp = new RegExp("{bpm}", "g"); var regExp = new RegExp("{bpm}", "g");
content = content.replace(regExp, ""); content = content.replace(regExp, "");
content = content.replace(regExp, arg.sampleRate/1000+"kHz");
var regExp = new RegExp("{bitRate}", "g"); var regExp = new RegExp("{bitRate}", "g");
content = content.replace(regExp, arg.bitRate+"kbps"); content = content.replace(regExp, arg.bitRate+"kbps");
var regExp = new RegExp("{genre}", "g"); var regExp = new RegExp("{genre}", "g");