summaryrefslogtreecommitdiffstats
path: root/roles/obs/templates/intro
diff options
context:
space:
mode:
Diffstat (limited to 'roles/obs/templates/intro')
-rwxr-xr-xroles/obs/templates/intro10
1 files changed, 6 insertions, 4 deletions
diff --git a/roles/obs/templates/intro b/roles/obs/templates/intro
index bf02dc3..9bf1161 100755
--- a/roles/obs/templates/intro
+++ b/roles/obs/templates/intro
@@ -8,7 +8,7 @@ fi
SLUG=$1
FILE=$1
if [[ ! -f $FILE ]]; then
- LIST=({{ emacsconf_caption_dir }}/assets/stream/emacsconf-{{ emacsconf_year }}-$FILE--*.webm)
+ LIST=({{ emacsconf_caption_dir }}/cache/emacsconf-{{ emacsconf_year }}-$FILE--*--intro.webm)
FILE="${LIST[0]}"
BY_SLUG=1
else
@@ -16,8 +16,10 @@ else
fi
shift
overlay $SLUG
-if [[ -f {{ emacsconf_caption_dir }}/assets/intros/$SLUG.webm ]]; then
- mpv {{ emacsconf_caption_dir }}/assets/intros/$SLUG.webm
+if [[ -f "$FILE" ]]; then
+ echo "Playing $FILE"
+ mpv "$FILE"
else
- firefox {{ emacsconf_caption_dir }}/assets/in-between/$SLUG.png
+ echo "Opening backup image {{ emacsconf_caption_dir }}/assets/in-between/$SLUG.png"
+ firefox {{ emacsconf_caption_dir }}/assets/in-between/$SLUG.png
fi