summaryrefslogtreecommitdiffstats
path: root/abs/extra/mythappletrailers/loading.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-09-05 15:51:59 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-09-05 15:51:59 (GMT)
commit89ac93c209dd138359e9a9e761d53042aea61e11 (patch)
treeb12a042d8f708c73f55e239a2dd4ad16bc4e3a72 /abs/extra/mythappletrailers/loading.sh
parent7983ca5c37091f4d0ff33584fe9e2f4487400caa (diff)
downloadlinhes_pkgbuild-89ac93c209dd138359e9a9e761d53042aea61e11.zip
linhes_pkgbuild-89ac93c209dd138359e9a9e761d53042aea61e11.tar.gz
linhes_pkgbuild-89ac93c209dd138359e9a9e761d53042aea61e11.tar.bz2
mythappletrailers: update for php7 and url change. closes #1026
adjust loading.sh to wait for cache to fill then close
Diffstat (limited to 'abs/extra/mythappletrailers/loading.sh')
-rwxr-xr-xabs/extra/mythappletrailers/loading.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/abs/extra/mythappletrailers/loading.sh b/abs/extra/mythappletrailers/loading.sh
index 55321fa..8b191e1 100755
--- a/abs/extra/mythappletrailers/loading.sh
+++ b/abs/extra/mythappletrailers/loading.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-msg_client.py --timeout 10 --msg "Loading . . . "
#. /etc/osd_cat.cfg || {
# color=yellow
@@ -11,3 +10,14 @@ msg_client.py --timeout 10 --msg "Loading . . . "
#}
#echo -e "Loading . . . " | osd_cat --pos=middle --align=center --delay=10 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font
+
+msg_client.py --timeout 10 --msg "Loading Trailer..." --tag "trailers" &
+sleep 2
+cacheFill=0
+while [[ cacheFill -eq 0 ]]
+do
+ cacheFill=$(tail -n 1 /tmp/.mplayer-status | grep -ci "Cache fill")
+done
+#sleep 1
+msg_client.py --clear --tag "trailers"
+msg_client.py --kill