graveljp / smugcli

Command line tool for SmugMug
MIT License
34 stars 14 forks source link

Video file names are altered during upload #21

Open firecat53 opened 3 years ago

firecat53 commented 3 years ago

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!)

durin42 commented 3 years ago

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 commented 3 years ago

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

firecat53 commented 3 years ago

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

firecat53 commented 1 year ago

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