KonradIT / gopro-py-api

Unofficial GoPro API Library for Python - connect to GoPro via WiFi.
MIT License
1.4k stars 211 forks source link

Unable to fetch most recent media URL on GoPro Fusion #161

Open sahajamatya opened 3 years ago

sahajamatya commented 3 years ago

I get an almost empty file path when using the getMedia() and getMediaFusion() functions.

To Reproduce Steps to reproduce the behavior:

>>> from goprocam import GoProCamera, constants
>>> GoProCamera.GoPro().getMediaFusion()

Expected behavior It should return the URL for both front and back images of last picture taken.

['http://10.5.5.9/videos/DCIM/100GBACK/GPBK0151.JPG', 'http://10.5.5.9/videos2/DCIM/100GFRNT/GPFR0151.JPG']

Screenshots Instead, it returns:

['http://10.5.5.9/videos/DCIM//', 'http://10.5.5.9/videos2/DCIM//']

Screen Shot 2020-12-23 at 4 31 01 PM

Additional context The SD cards are not empty.

I am able to view images by manually typing in the correct URL on the browser.

goprocam/GoProCamera.py lines 649-677? Are "GBACK", "GFRNT" supposed to be prefixed with "100" to be "100GBACK", "100GFRNT"?

KonradIT commented 3 years ago

Hi, can you rollback to this version? https://github.com/KonradIT/gopro-py-api/releases/tag/3.0.1 and try again

sahajamatya commented 3 years ago

Thank you for your response, Konrad. It seems I have the same issue with v3.0.1 as well.

image