diff options
| author | 2020-09-06 11:23:43 -0400 | |
|---|---|---|
| committer | 2020-09-06 11:23:43 -0400 | |
| commit | 6e7a3dc4ebda8357fe9fff197ff9b607e32bcdcb (patch) | |
| tree | b87044adb9a01d56bf67a973c17721e50575715b | |
| parent | template go env (diff) | |
better laptop handling for streamlink
| -rw-r--r-- | dot_config/streamlink/config.tmpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dot_config/streamlink/config.tmpl b/dot_config/streamlink/config.tmpl index 7f2f028..3473a77 100644 --- a/dot_config/streamlink/config.tmpl +++ b/dot_config/streamlink/config.tmpl @@ -1,10 +1,11 @@ player=mpv verbose-player -{{- if eq .chezmoi.hostname "LapToast" }} +{{- $laptops := list "laptoast" "toastbp" -}} +{{ if has (.chezmoi.hostname | lower) $laptops }} default-stream=720p,720p60,1080p60,best -{{- else }} +{{ else }} default-stream=best -{{- end }} +{{ end -}} player-passthrough=hls,http,rtmp |
