Skip to content

Conversation

hkhodr
Copy link

@hkhodr hkhodr commented Nov 28, 2023

Add command to be able to download playback videos (nvr)

Copy link
Member

@Benehiko Benehiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @hkhodr :)

This looks really good! Just a small comment

}
body = [{"cmd": "NvrDownload", "action": 1, "param": search_params}]

resp = self._execute_command('NvrDownload', body)[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wrap this in a try catch block in case the array does not have an index 0.

@Benehiko Benehiko changed the title add nvrdownload command feat: nvrdownload command Nov 28, 2023
@hkhodr hkhodr requested a review from Benehiko November 28, 2023 14:10
@Benehiko Benehiko merged commit d2e988b into ReolinkCameraAPI:master Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants