jotta / jotta-cli-issues

45 stars 1 forks source link

All photos from all years downloaded when Timeline/2021 is path #130

Closed mabahj closed 3 years ago

mabahj commented 3 years ago

Make sure you are running the latest version of jotta-cli before reporting an issue.

jotta-cli release (jotta-cli version):

-------------------------------------------
jottad executable : /usr/bin/jottad
jottad appdata    : /var/lib/jottad
jottad version    : 0.9.38023
jotta-cli version : 0.9.38023
-------------------------------------------

Description of problem: jotta-cli download Photos/Timeline/2021 . downloads every single photo stored on my Jotta account. jotta-cli download Photos/Timeline/2021/1 . works as intended

Expected: jotta-cli download Photos/Timeline/2021 . should download only photos from 2021.

jotta-cli status (jotta-cli status):

N/A

Relevant logs for the issue (cat ~/.jottad/jottabackup.log) The log contains a lot of these. The paths there also seem very wrong.

pid:1163 2021/01/25 21:20:21 Attempting download of /photos/Timeline/2021
pid:1163 2021/01/25 21:20:22 Download starting: /photos/Timeline/2021 (isfile:false)=> /media/files/photo/JottaSync/tmp/2021
pid:1163 2021/01/25 21:20:23 Duplicate name for /photos/Timeline/2021/2005/4/IMG_1195.JPG => /photos/Timeline/2021/2005/4/IMG_1195_2.JPG 
pid:1163 2021/01/25 21:20:23 Duplicate name for /photos/Timeline/2021/2005/4/IMG_1201.JPG => /photos/Timeline/2021/2005/4/IMG_1201_2.JPG 
pid:1163 2021/01/25 21:20:23 Duplicate name for /photos/Timeline/2021/2005/4/IMG_1211.JPG => /photos/Timeline/2021/2005/4/IMG_1211_2.JPG 
pid:1163 2021/01/25 21:20:24 Duplicate name for /photos/Timeline/2021/2005/4/Video005.3gp => /photos/Timeline/2021/2005/4/Video005_2.3gp 
pid:1163 2021/01/25 21:20:25 Duplicate name for /photos/Timeline/2021/2006/5/P1010001.JPG => /photos/Timeline/2021/2006/5/P1010001_2.JPG 

Traceback

Additional info:

Kimbsen commented 3 years ago

Well get that fixed for the next release. jotta-cli download Photos/Timeline/2021 . should of course only download photos from 2021 :)

Kimbsen commented 3 years ago

We've fixed this in version 0.9.41047 ( unstable ).

It will be in the next stable release as well. Not sure when that will be though.

Kimbsen commented 3 years ago

this should be fixed in the 0.9.41303 ( stable ) also now.