Skip to content

Commit

Permalink
Videos: Add .dv to the list of known video file types #3226
Browse files Browse the repository at this point in the history
Note that this is completely untested as we have no sample files.

Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed Feb 22, 2023
1 parent 1cc64cc commit ae4a2ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fs/file_exts.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ var Extensions = FileExtensions{
".webm": VideoWebM,
".asf": VideoASF,
".wmv": VideoWMV,
".dv": VideoDV,
".svg": VectorSVG,
".ai": VectorAI,
".ps": VectorPS,
Expand Down
1 change: 1 addition & 0 deletions pkg/fs/file_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var TypeInfo = TypeMap{
VideoAVI: "Microsoft Audio Video Interleave",
VideoASF: "Advanced Systems Format ",
VideoWMV: "Windows Media",
VideoDV: "DV Video",
Video3GP: "Mobile Multimedia Container (3G)",
Video3G2: "Mobile Multimedia Container (CDMA2000)",
VideoFlash: "Adobe Flash",
Expand Down
1 change: 1 addition & 0 deletions pkg/fs/file_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const (
VideoOGV Type = "ogv" // Ogg container format maintained by the Xiph.Org, free and open
VideoASF Type = "asf" // Advanced Systems/Streaming Format (ASF)
VideoWMV Type = "wmv" // Windows Media Video (based on ASF)
VideoDV Type = "dv" // DV Video (https://en.wikipedia.org/wiki/DV)
VectorSVG Type = "svg" // Scalable Vector Graphics
VectorAI Type = "ai" // Adobe Illustrator
VectorPS Type = "ps" // Adobe PostScript
Expand Down
1 change: 1 addition & 0 deletions pkg/media/formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var Formats = map[fs.Type]Type{
fs.VideoOGV: Video,
fs.VideoASF: Video,
fs.VideoWMV: Video,
fs.VideoDV: Video,
fs.VectorSVG: Vector,
fs.VectorAI: Vector,
fs.VectorPS: Vector,
Expand Down

0 comments on commit ae4a2ab

Please sign in to comment.