Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjameson committed Nov 14, 2024
1 parent 37698f1 commit b3200c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generate-iiif-3-manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ export const createManifest = (
}
}

const source = avFile.file_url.split('?');
const type = mime.lookup(source[0]);

event.items?.push({
id: `${siteURL}/${snakeCase(
eventData.label
Expand All @@ -208,7 +211,7 @@ export const createManifest = (
body: {
id: avFile.file_url,
type: eventData.item_type === 'Audio' ? 'Sound' : 'Video',
format: mime.lookup(avFile.file_url) || 'unknown',
format: type ? type : 'unknown',
duration: avFile.duration,
},
target: eventId,
Expand Down

0 comments on commit b3200c4

Please sign in to comment.