Skip to content

Commit 6b499f6

Browse files
authored
Merge pull request #15 from XavierTolza/patch-1
Fix Unicode error
2 parents 69cd89f + 78ed664 commit 6b499f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ffprobe/ffprobe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, path_to_video):
4444
self.attachment = []
4545

4646
for line in iter(p.stdout.readline, b''):
47-
line = line.decode('UTF-8')
47+
line = line.decode('UTF-8', 'ignore')
4848

4949
if '[STREAM]' in line:
5050
stream = True
@@ -68,7 +68,7 @@ def __init__(self, path_to_video):
6868
stream_metadata_met = False
6969

7070
for line in iter(p.stderr.readline, b''):
71-
line = line.decode('UTF-8')
71+
line = line.decode('UTF-8', 'ignore')
7272

7373
if 'Metadata:' in line and not stream_metadata_met:
7474
is_metadata = True

0 commit comments

Comments
 (0)