Skip to content

Commit

Permalink
Make sure Segment.keys is at least an empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed Mar 26, 2023
1 parent e58e878 commit 7102383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m3u8/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def __init__(self, uri=None, base_uri=None, program_date_time=None, current_prog
self.scte35_duration = scte35_duration
self.scte35_elapsedtime = scte35_elapsedtime
self.asset_metadata = asset_metadata
self.keys = keyobjects
self.keys = keyobjects or []
self.parts = PartialSegmentList( [ PartialSegment(base_uri=self._base_uri, **partial) for partial in parts ] if parts else [] )
if init_section is not None:
self.init_section = InitializationSection(self._base_uri, **init_section)
Expand Down

0 comments on commit 7102383

Please sign in to comment.