Loading src/resources/models.py +10 −1 Original line number Diff line number Diff line Loading @@ -589,6 +589,15 @@ class File(Resource): else: raise NotHLS("Resource is not served via HLS") def hls_lowest_quality_url(self) -> str: if self.should_have_hls: return "{}{}/stream_3/playlist.m3u8".format( settings.JAMA_HLS_ENDPOINT, hash_to_hls_path(self.hash), ) else: raise NotHLS("Resource is not served via HLS") def hls_thumbnail_url(self) -> str: if self.should_have_hls: return "{}{}/thumbnail.jpg".format( Loading @@ -598,7 +607,7 @@ class File(Resource): else: raise NotHLS("Resource is not served via HLS") def local_path(self): def local_path(self) -> str: return hash_to_local_path(self.hash) def iiif_destination_file(self) -> str: Loading src/rpc/serializers.py +2 −3 Original line number Diff line number Diff line Loading @@ -181,10 +181,9 @@ def file( tags.append(tag(tag_instance, cache=cache)) if file_instance.should_have_hls: urls["hls"] = file_instance.hls_url() urls["hls_lowest_quality"] = file_instance.hls_lowest_quality_url() urls["hls_thumbnail"] = file_instance.hls_thumbnail_url() if ( file_instance.should_have_iiif ): # and iiif_file_exists(file_instance.hash): # FS is slow if file_instance.should_have_iiif: iiif_path = models.hash_to_iiif_path( file_instance.hash, settings.IIIF_PATH_SEPARATOR ) Loading src/ui/front/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { "@pdn-certic/vue3-jama": "0.7.3", "@pdn-certic/vue3-jama": "0.7.4", "vue": "^3.5.25" }, "devDependencies": { Loading src/ui/front/yarn.lock +4 −4 Original line number Diff line number Diff line Loading @@ -299,10 +299,10 @@ resolved "https://registry.yarnpkg.com/@mdi/font/-/font-7.4.47.tgz#2ae522867da3a5c88b738d54b403eb91471903af" integrity sha512-43MtGpd585SNzHZPcYowu/84Vz2a2g31TvPMTm9uTiCSWzaheQySUcSyUH/46fPnuPQWof2yd0pGBtzee/IQWw== "@pdn-certic/vue3-jama@0.7.3": version "0.7.3" resolved "https://git.unicaen.fr/api/v4/projects/855/packages/npm/@pdn-certic/vue3-jama/-/@pdn-certic/vue3-jama-0.7.3.tgz#80fe10469909483e9e82533689afe0f23fbb21f6" integrity sha1-gP4QRpkJSD6eglM2ia/g8j+7IfY= "@pdn-certic/vue3-jama@0.7.4": version "0.7.4" resolved "https://git.unicaen.fr/api/v4/projects/855/packages/npm/@pdn-certic/vue3-jama/-/@pdn-certic/vue3-jama-0.7.4.tgz#59bbc92852c8c191345c07155e9b7dd463a7da5a" integrity sha1-WbvJKFLIwZE0XAcVXpt91GOn2lo= dependencies: "@certic/certic-ouai" "0.0.26" "@mdi/font" "^7.4.47" Loading Loading
src/resources/models.py +10 −1 Original line number Diff line number Diff line Loading @@ -589,6 +589,15 @@ class File(Resource): else: raise NotHLS("Resource is not served via HLS") def hls_lowest_quality_url(self) -> str: if self.should_have_hls: return "{}{}/stream_3/playlist.m3u8".format( settings.JAMA_HLS_ENDPOINT, hash_to_hls_path(self.hash), ) else: raise NotHLS("Resource is not served via HLS") def hls_thumbnail_url(self) -> str: if self.should_have_hls: return "{}{}/thumbnail.jpg".format( Loading @@ -598,7 +607,7 @@ class File(Resource): else: raise NotHLS("Resource is not served via HLS") def local_path(self): def local_path(self) -> str: return hash_to_local_path(self.hash) def iiif_destination_file(self) -> str: Loading
src/rpc/serializers.py +2 −3 Original line number Diff line number Diff line Loading @@ -181,10 +181,9 @@ def file( tags.append(tag(tag_instance, cache=cache)) if file_instance.should_have_hls: urls["hls"] = file_instance.hls_url() urls["hls_lowest_quality"] = file_instance.hls_lowest_quality_url() urls["hls_thumbnail"] = file_instance.hls_thumbnail_url() if ( file_instance.should_have_iiif ): # and iiif_file_exists(file_instance.hash): # FS is slow if file_instance.should_have_iiif: iiif_path = models.hash_to_iiif_path( file_instance.hash, settings.IIIF_PATH_SEPARATOR ) Loading
src/ui/front/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { "@pdn-certic/vue3-jama": "0.7.3", "@pdn-certic/vue3-jama": "0.7.4", "vue": "^3.5.25" }, "devDependencies": { Loading
src/ui/front/yarn.lock +4 −4 Original line number Diff line number Diff line Loading @@ -299,10 +299,10 @@ resolved "https://registry.yarnpkg.com/@mdi/font/-/font-7.4.47.tgz#2ae522867da3a5c88b738d54b403eb91471903af" integrity sha512-43MtGpd585SNzHZPcYowu/84Vz2a2g31TvPMTm9uTiCSWzaheQySUcSyUH/46fPnuPQWof2yd0pGBtzee/IQWw== "@pdn-certic/vue3-jama@0.7.3": version "0.7.3" resolved "https://git.unicaen.fr/api/v4/projects/855/packages/npm/@pdn-certic/vue3-jama/-/@pdn-certic/vue3-jama-0.7.3.tgz#80fe10469909483e9e82533689afe0f23fbb21f6" integrity sha1-gP4QRpkJSD6eglM2ia/g8j+7IfY= "@pdn-certic/vue3-jama@0.7.4": version "0.7.4" resolved "https://git.unicaen.fr/api/v4/projects/855/packages/npm/@pdn-certic/vue3-jama/-/@pdn-certic/vue3-jama-0.7.4.tgz#59bbc92852c8c191345c07155e9b7dd463a7da5a" integrity sha1-WbvJKFLIwZE0XAcVXpt91GOn2lo= dependencies: "@certic/certic-ouai" "0.0.26" "@mdi/font" "^7.4.47" Loading