add transcoding to mp3

because CU's car stereo can't do opus...

incidentally adds support for playing any audio format in ie11
This commit is contained in:
ed
2024-03-29 16:36:56 +00:00
parent 0ae12868e5
commit a080759a03
9 changed files with 74 additions and 25 deletions

View File

@@ -2450,7 +2450,7 @@ class HttpCli(object):
self.log("user not allowed to overwrite with ?replace")
elif bos.path.exists(abspath):
try:
bos.unlink(abspath)
wunlink(self.log, abspath, vfs.flags)
t = "overwriting file with new upload: %s"
except:
t = "toctou while deleting for ?replace: %s"
@@ -3177,7 +3177,7 @@ class HttpCli(object):
# for f in fgen: print(repr({k: f[k] for k in ["vp", "ap"]}))
cfmt = ""
if self.thumbcli and not self.args.no_bacode:
for zs in ("opus", "w", "j"):
for zs in ("opus", "mp3", "w", "j"):
if zs in self.ouparam or uarg == zs:
cfmt = zs