Skip to content

Commit

Permalink
default to CDN hosted VOD if available (usig flags)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltriusRS committed Sep 23, 2023
1 parent 0068df3 commit c63a153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/videos/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ const { data, error } = useAsyncData(async () => {
const data = episode.data
showCorruptionModal.value = data.flags.corrupt
showContentWarningModal.value = data.flags.cw
useCDN.value = data.flags.VOD
try {
const cues = await (await fetch(`https://cdn.thewandb.com/captions/${data.id}.vtt`, {
headers: {
Expand Down

0 comments on commit c63a153

Please sign in to comment.