Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2023-08-17 14:13:56 -07:00
parent 755a4fd789
commit 1e693890ef
6 changed files with 1981 additions and 6 deletions

View File

@ -26,7 +26,7 @@ def sync(
if isinstance(fc, FileConversion) and fc.output != "":
if isinstance(fc.output, str):
b = base64.b64decode(fc.output + "===")
b = base64.urlsafe_b64decode(fc.output.strip("=") + "===")
return (fc, b)
return fc
@ -52,7 +52,7 @@ async def asyncio(
if isinstance(fc, FileConversion) and fc.output != "":
if isinstance(fc.output, str):
b = base64.b64decode(fc.output + "===")
b = base64.urlsafe_b64decode(fc.output.strip("=") + "===")
return (fc, b)
return fc