Skip to content

Commit

Permalink
Issue #68: Unable to convert string to Unicode: 'ascii' codec can't d…
Browse files Browse the repository at this point in the history
…ecode byte 0xab in position 0: ordinal not in range(128)
  • Loading branch information
Nekmo committed Nov 7, 2020
1 parent 80fe1c7 commit 949ff91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions telegram_upload/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@

from hachoir.metadata import extractMetadata
from hachoir.parser import createParser
from hachoir.core import config as hachoir_config

from telegram_upload.exceptions import ThumbVideoError


hachoir_config.quiet = True


def video_metadata(file):
return extractMetadata(createParser(file))
Expand Down

0 comments on commit 949ff91

Please sign in to comment.