Fixed Latin-1 decode problems

Fixes Latin-1 decode problems
This commit is contained in:
Loibl33 2024-03-25 11:00:34 +01:00 committed by GitHub
parent 5dc9cfa0a1
commit 07e96f122d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ def main_function(url, options):
if options.duration:
print(duration_minutes)
elif options.transcript:
print(transcript_text)
print(transcript_text.encode('utf-8').decode('unicode-escape'))
elif options.comments:
print(json.dumps(comments, indent=2))
else: