Skip to content

Commit

Permalink
dji: osmo action 3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradIT committed Nov 9, 2024
1 parent a7fac7f commit fceae9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/dji/dji.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (Entrypoint) Import(params utils.ImportParams) (*utils.Result, error) {
percentage,
)

mediaFolderRegex := regexp.MustCompile(`\d+MEDIA`)
mediaFolderRegex := regexp.MustCompile(`\d+MEDIA|DJI_\d+`)

root := filepath.Join(params.Input, "DCIM")
var result utils.Result
Expand Down
4 changes: 2 additions & 2 deletions pkg/dji/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const (
Subtitle FileType = "srt"
RawPhoto FileType = "dng"
PanoramaIndex FileType = "panoramaindex"
Audio FileType = "audio"
)

type FileTypeMatch struct {
Expand Down Expand Up @@ -39,6 +40,5 @@ var DeviceNames = map[string]string{
"OT110": "Osmo Pocket",
"L1D-20": "Mavic 2 Pro",
"L2D-20c": "Mavic 3",
"FC7303": "Mini 2",
"FC3582": "Mini 3 Pro",
"AC002": "Osmo Action 3",
}

0 comments on commit fceae9f

Please sign in to comment.