added support for more formats

This commit is contained in:
uh wot 2021-08-16 22:00:34 +02:00
parent a735d06185
commit 48a079858a
Signed by: uhwot
GPG Key ID: CB2454984587B781
3 changed files with 10 additions and 7 deletions

6
dist/worker.js vendored

File diff suppressed because one or more lines are too long

View File

@ -31,7 +31,7 @@
<p>params are:</p>
<p><b>t: tagging</b>, boolean</p>
<p><b>f: format</b>, can be one of these:</p>
<p>aac_96, 64, 128, 320, ra1, ra2, ra3, sbc_256, misc</p>
<p>aac_96, 64, 128, 320, mp4_ra1, mp4_ra2, mp4_ra3, mhm1_ra1, mhm1_ra2, mhm1, sbc_256, misc</p>
<p>available formats depend on the track</p>
</body>
</html>

View File

@ -10,9 +10,12 @@ const format_string_to_num = {
'64': '10',
'128': '1',
'320': '3',
'ra1': '13',
'ra2': '14',
'ra3': '15',
'mp4_ra1': '13',
'mp4_ra2': '14',
'mp4_ra3': '15',
'mhm1_ra1': '16',
'mhm1_ra2': '17',
'mhm1': '18',
'sbc_256': '12',
'misc': '0',
}