crunpyroll icon indicating copy to clipboard operation
crunpyroll copied to clipboard

fix for KeyError SegmentTemplate

Open dbalague opened this issue 9 months ago • 0 comments

When trying to obtain the manifest I would encounter a KeyError with the SegmentTemplate key. That happened when parsing the MPD file if there was a subtitle stream in the manifest. The fix I propose is to check if the SegmentTemplate key exists (that means that the aset is either a video or audio stream), and if that is not the case, then it falls into a subtitle stream for which I added a list in the Manifest class.

dbalague avatar May 10 '24 07:05 dbalague