smugcli icon indicating copy to clipboard operation
smugcli copied to clipboard

Video file names are altered during upload

Open firecat53 opened this issue 4 years ago • 4 comments

For example, I used smugcli to upload 20200703_200206.mp4 and after upload the filename shown on the website is 20200703_200206_mp4.MP4. This causes both smugcli sync and uploads from the website to upload the video again because the filename doesn't match.

Thanks!

(sorry to spam you with several issues in a row! Useful project!)

firecat53 avatar Jan 18 '21 20:01 firecat53

I've spent some time poking at this today, and there's two rename patterns I've seen, with no seeming reason triggering the rename. Given a file named FOO.EXT (where EXT in my case is always either mp4 or MP4), I've seen the following:

FOO_EXT.MP4 FOO.MP4

A related-but-different problem is that sometimes uploaded videos (all uploaded by smugcli!) are missing ImageMetadata.DateTimeModified keys, which was triggering datetime.datetime.strptime failures.

I'm working on patches for both.

durin42 avatar Jul 24 '21 22:07 durin42

FWIW I've never seen this on .MOV or .mov files, but I have those.

durin42 avatar Jul 24 '21 23:07 durin42

Cool! I'll hopefully have a chance to test your fix here shortly.

firecat53 avatar Jul 27 '21 15:07 firecat53

Moved off of Smugmug. Will leave this open in case others are interested.

firecat53 avatar Jul 25 '23 02:07 firecat53