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