mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-12 13:49:13 -04:00
chore(search): drop the dead legacy tika key
This commit is contained in:
1 parent
709962b616
commit
ae9fd595d9
2 files changed
+1
-3
No files matched your search
@@ -90,8 +90,7 @@ func motionPhotoVideoSize(meta map[string][]string) (int64, bool) {
|
||||
// really there, so its presence is what confirms the facet: a shared motion
|
||||
// photo can keep the xmp and lose the appended video.
|
||||
func isMotionPhotoVideo(meta map[string][]string) bool {
|
||||
// tika 4 renamed the meta prefix from X-TIKA: to tk:
|
||||
name, err := getFirstValue(meta, "tk:resource-name", "X-TIKA:resource-name")
|
||||
name, err := getFirstValue(meta, "tk:resource-name")
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -83,7 +83,6 @@ var _ = Describe("isMotionPhotoVideo", func() {
|
||||
Expect(isMotionPhotoVideo(meta)).To(Equal(expected))
|
||||
},
|
||||
Entry("named attachment", map[string][]string{"tk:resource-name": {"motion-photo.mp4"}}, true),
|
||||
Entry("legacy tika prefix", map[string][]string{"X-TIKA:resource-name": {"motion-photo.mp4"}}, true),
|
||||
Entry("no extension, as for MicroVideo", map[string][]string{"tk:resource-name": {"motion-photo"}}, true),
|
||||
Entry("another attachment", map[string][]string{"tk:resource-name": {"cover.jpg"}}, false),
|
||||
Entry("a name that only starts alike", map[string][]string{"tk:resource-name": {"motion-photography.mp4"}}, false),
|
||||
|
||||
Reference in new issue
Block a user