From abc709f81e5c96598d80ab7fab7ce9c198ade25a Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Wed, 18 Dec 2024 13:06:05 -0500 Subject: [PATCH] Make custom m3u8 for faster processing --- ci/fixtures/whisper/hls.m3u8 | 7 +++++++ ci/test.sh | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 ci/fixtures/whisper/hls.m3u8 diff --git a/ci/fixtures/whisper/hls.m3u8 b/ci/fixtures/whisper/hls.m3u8 new file mode 100644 index 0000000..2428728 --- /dev/null +++ b/ci/fixtures/whisper/hls.m3u8 @@ -0,0 +1,7 @@ +#EXTM3U +#EXT-X-VERSION:3 +#EXT-X-TARGETDURATION:10 +#EXT-X-MEDIA-SEQUENCE:0 +#EXTINF:10.007800, +112300.ts +#EXT-X-ENDLIST diff --git a/ci/test.sh b/ci/test.sh index d1806d0..1877b36 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -63,10 +63,11 @@ for SERVICE in "${SERVICES[@]}"; do elif [ "$SERVICE" == "whisper" ]; then curl -s -o vtt.txt \ --header "Accept: text/plain" \ + --header "Content-Type: application/vnd.apple.mpegurl" \ --header "Apix-Ldp-Resource: https://preserve.lehigh.edu/sites/default/files/derivatives/hls/node/8157/11230.m3u8" \ + --data-binary "@/fixtures/whisper/hls.m3u8" "$URL" - cat vtt.txt - grep -i "Lehigh Business Blog" vtt.txt || exit 1 + grep -i "This podcast is brought to you by Illuminate" vtt.txt || exit 1 echo "VTT as expected" rm vtt.txt elif [ "$SERVICE" == "pandoc" ]; then