Skip to content

Commit 3018f02

Browse files
authored
Version 2.1.1 (#31)
* Fixing parse_hdr_details bug (thanks to Jan Temešinko and schlotkins)
1 parent 1faeedd commit 3018f02

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
---------
33

4+
Version 2.1.1
5+
~~~~~~~~~~~~~
6+
7+
* Fixing parse_hdr_details bug (thanks to Jan Temešinko and schlotkins)
8+
49
Version 2.1.0
510
~~~~~~~~~~~~~
611

flix/flix.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,11 @@ def parse_hdr_details(self, video_source, video_track=0):
378378
)
379379

380380
result = run(command, shell=True, stdout=PIPE, stderr=PIPE)
381-
data = Box.from_json(result.stdout.decode("utf-8"), default_box=True, default_box_attr=None)
381+
try:
382+
data = Box.from_json(result.stdout.decode("utf-8"), default_box=True, default_box_attr=None)
383+
except BoxError:
384+
# No details to parse
385+
return
382386
if "frames" not in data or not len(data.frames):
383387
return
384388
data = data.frames[0]

flix/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
__version__ = "2.1.0"
3+
__version__ = "2.1.1"
44
__author__ = "Chris Griffith"

0 commit comments

Comments
 (0)