Skip to content

Commit

Permalink
Add shorten file format
Browse files Browse the repository at this point in the history
  • Loading branch information
hadro committed Jul 13, 2023
1 parent f3ab60d commit 30daa11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iiify/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def create_manifest3(identifier, domain=None, page=None):
originals.append(f)

# create the canvases for each original
for file in [f for f in originals if f['format'] in ['VBR MP3', 'Flac', 'Ogg Vorbis', 'WAVE','24bit Flac']]:
for file in [f for f in originals if f['format'] in ['VBR MP3', 'Flac', 'Ogg Vorbis', 'WAVE', '24bit Flac', 'Shorten']]:
normalised_id = file['name'].rsplit(".", 1)[0]
slugged_id = normalised_id.replace(" ", "-")
c_id = f"https://iiif.archivelab.org/iiif/{identifier}/{slugged_id}/canvas"
Expand All @@ -387,7 +387,7 @@ def create_manifest3(identifier, domain=None, page=None):
if file['name'] in derivatives:
body = Choice(items=[])
# add the choices in order per https://github.com/ArchiveLabs/iiif.archivelab.org/issues/77#issuecomment-1499672734
for format in ['VBR MP3', 'Flac', 'Ogg Vorbis', 'WAVE']:
for format in ['VBR MP3', 'Flac', 'Ogg Vorbis', 'WAVE', '24bit Flac', 'Shorten']:
if format in derivatives[file['name']]:
r = ResourceItem(id=f"https://archive.org/download/{identifier}/{derivatives[file['name']][format]['name'].replace(' ', '%20')}",
type='Audio',
Expand Down

0 comments on commit 30daa11

Please sign in to comment.