Skip to content

Commit

Permalink
Make custom m3u8 for faster processing
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 18, 2024
1 parent 7b332a9 commit abc709f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ci/fixtures/whisper/hls.m3u8
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abc709f

Please sign in to comment.