- return video["hls-high"].replace("http:", "https:")
- raise Exception("Missing hls-high program stream for " + self.video_key)
+ for quality in ["hls-plus", "hls-high"]:
+ if quality in video:
+ return video[quality].replace("http:", "https:")
+ raise Exception("Missing program stream for " + self.video_key)