void-packages/srcpkgs/orion/patches/b7360bbd4a856ea45c770f882be9e63a663a9acd.patch
Đoàn Trần Công Danh 2fd8d4df94 srcpkgs/o*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

33 lines
854 B
Diff

--- a/src/qml/PlayerView.qml
+++ b/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)