void-packages/srcpkgs/orion/patches/b7360bbd4a856ea45c770f882be9e63a663a9acd.patch
Jürgen Buchmüller 5f0b8fdb71 orion: update to 1.6.7
Add remaining patches from the archived repository.
2021-01-10 15:47:57 +01:00

32 lines
850 B
Diff

--- src/qml/PlayerView.qml
+++ src/qml/PlayerView.qml
@@ -128,13 +128,27 @@
function loadAndPlay(){
- if (!streamMap) return
+ if (!streamMap) {
+ console.log("streamMap not available yet");
+ return;
+ }
var description = setWatchingTitle();
var start = !isVod ? -1 : seekBar.value
- var url = streamMap[Settings.quality]
+ var quality = Settings.quality;
+ if (!streamMap.hasOwnProperty(quality)) {
+ console.log("no stream for quality", quality);
+ quality = "source";
+ console.log("using", quality);
+ }
+ var url = streamMap[quality]
+
+ if (url == null) {
+ console.error("did not have a playback url");
+ return;
+ }
console.debug("Loading: ", url)