Skip to content

Commit

Permalink
馃悰 Fix wrong argument on timelapse snapshot fetch
Browse files Browse the repository at this point in the history
We were using the full webcam object instead of just its name as
documented.

Closes #5014
  • Loading branch information
foosel committed May 16, 2024
1 parent a4a5b40 commit 62ad779
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/octoprint/timelapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ def _perform_capture(self, filename, onerror=None):
self._logger.debug(
f"Going to capture {filename} from {self._webcam.config.name} provided by {self._webcam.providerIdentifier}"
)
snapshot = self._webcam.providerPlugin.take_webcam_snapshot(self._webcam)
snapshot = self._webcam.providerPlugin.take_webcam_snapshot(
self._webcam.config.name
)

with open(filename, "wb") as f:
for chunk in snapshot:
Expand Down

0 comments on commit 62ad779

Please sign in to comment.