Open TheKysek opened 3 years ago
True, will debug and push an update.
Hi Konrad
Thanks for your hard work and nice API!
I have a similar problem with where my SD-Card contains mixed recordings of normal photos and multishot sequences. The error is:
Traceback (most recent call last):
File "/home/pi/gopro_timelapse/dump_sd.py", line 9, in <module>
gpCam.downloadMultiShot()
File "/home/pi/gopro_timelapse/.venv/lib/python3.7/site-packages/goprocam/GoProCamera.py", line 836, in downloadMultiShot
lower_bound = i2["b"]
KeyError: 'b'
The multishot sequence is not the last recording. downloadMultiShot()
querries the folder name and filename which in my case returns:
folder = "101GOPRO"
filename = "GOPR4987.JPG"
Manual inspection of the SD-Card shows that the multishot sequence is divided into two folders (100GOPRO and 101GOPRO) For debug purpose, I attached the returned json "arr" from my camera and the complete folder structure of the SD-Card as a json file in the debug.zip at the end. https://github.com/KonradIT/gopro-py-api/blob/0249e073c725c1fe62d7a945fd0dcf9778b0c422/goprocam/GoProCamera.py#L827
Describe the bug Multishot sequences cannot be downloaded.
To Reproduce Steps to reproduce the behavior:
downloadMultiShot
to download itExpected behavior Multishot gets downloaded
Screenshots
As you can see, there is missing "00" between "G004" and "23.JPG"-"30.JPG".
The filenames should be:
Additional context
Bug in lines: