Skip to content

Commit

Permalink
google photo: file is uploaded with the title VID_20180811_184034.mp4…
Browse files Browse the repository at this point in the history
….MP4 (#441)

* google photo: file is uploaded with the title VID_20180811_184034.mp4.MP4
Fixes #439

* "Rename `max` to `maxValue` in `progressUpdate` function type"
  • Loading branch information
simulot authored Aug 17, 2024
1 parent 3396f6f commit fad0f57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/upload/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func newUI(ctx context.Context, app *UpCmd) *uiPage {
return ui
}

type progressUpdate func(value, max int)
type progressUpdate func(value, maxValue int)

// call back to get the progression
func (p *uiPage) updateImmichReading(value, total int) {
Expand Down
2 changes: 1 addition & 1 deletion immich/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (ic *ImmichClient) AssetUpload(ctx context.Context, la *browser.LocalAssetF
la.Title = "No Name" + ext // fix #88, #128
}

if strings.HasPrefix(strings.ToUpper(ext), ".MP") {
if strings.ToUpper(ext) == ".MP" {
ext = ".MP4" // #405
la.Title = la.Title + ".MP4"
}
Expand Down

0 comments on commit fad0f57

Please sign in to comment.