diff options
author | Sacha Chua <sacha@sachachua.com> | 2023-10-20 12:47:43 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2023-10-20 12:47:43 -0400 |
commit | dad54555a6682b32682977bea7823eb26b9ba088 (patch) | |
tree | b588356e9f555bd7d19e6d60d1bcaf8ef7c3808c /roles/obs/templates/play | |
parent | df15d8d56324d2129823cfaf0b50f6f08c220071 (diff) | |
download | emacsconf-ansible-dad54555a6682b32682977bea7823eb26b9ba088.tar.xz emacsconf-ansible-dad54555a6682b32682977bea7823eb26b9ba088.zip |
update caption dir and assets dir
Diffstat (limited to '')
-rwxr-xr-x | roles/obs/templates/play | 2 | ||||
-rwxr-xr-x | roles/obs/templates/play-with-intro | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/roles/obs/templates/play b/roles/obs/templates/play index 4f437a8..20fd24c 100755 --- a/roles/obs/templates/play +++ b/roles/obs/templates/play @@ -10,7 +10,7 @@ fi # Update the overlay FILE=$1 if [[ ! -f $FILE ]]; then - LIST=(/data/emacsconf/assets/stream/emacsconf-{{ emacsconf_year }}-$FILE*--main.webm) + LIST=({{ emacsconf_caption_dir }}/assets/stream/emacsconf-{{ emacsconf_year }}-$FILE*--main.webm) FILE="${LIST[0]}" BY_SLUG=1 fi diff --git a/roles/obs/templates/play-with-intro b/roles/obs/templates/play-with-intro index 75ce10d..1b1b9a5 100755 --- a/roles/obs/templates/play-with-intro +++ b/roles/obs/templates/play-with-intro @@ -10,7 +10,7 @@ fi # Update the overlay FILE=$1 if [[ ! -f $FILE ]]; then - LIST=(/data/emacsconf/assets/stream/emacsconf-{{ emacsconf_year }}-$FILE*.webm) + LIST=({{ emacsconf_caption_dir }}/assets/stream/emacsconf-{{ emacsconf_year }}-$FILE*.webm) FILE="${LIST[0]}" BY_SLUG=1 fi @@ -18,7 +18,7 @@ shift SLUG=$(echo "$FILE" | perl -ne 'if (/emacsconf-[0-9]*-(.*?)--/) { print $1; } else { print; }') overlay $SLUG # Play the video -if [[ -f /data/emacsconf/assets/intros/$SLUG.webm ]]; then +if [[ -f {{ emacsconf_caption_dir }}/assets/intros/$SLUG.webm ]]; then intro $SLUG fi mpv $FILE $* & |