Skip to content

Commit 6c33a22

Browse files
committed
Merge branch 'dev' of github.com:/fronzbot/blinkpy into dev
2 parents 2c9df52 + 2359a6b commit 6c33a22

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

blinkpy/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def update_images(self, config, force_cache=False):
176176
try:
177177
# API update only returns the timestamp!
178178
int(thumb_addr)
179-
thumb_string = f"/api/v3/media/accounts/{self.sync.blink.account_id}/networks/{self.product_type}/{self.camera_id}/thumbnail/thumbnail.jpg?ts={thumb_addr}&ext="
179+
thumb_string = f"/api/v3/media/accounts/{self.sync.blink.account_id}/networks/{self.network_id}/{self.product_type}/{self.camera_id}/thumbnail/thumbnail.jpg?ts={thumb_addr}&ext="
180180
except ValueError:
181181
# This is the old API and has the full url
182182
thumb_string = f"{thumb_addr}.jpg"

tests/test_cameras.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_camera_stream(self, mock_resp):
204204

205205
def test_different_thumb_api(self, mock_resp):
206206
"""Test that the correct url is created with new api."""
207-
thumb_endpoint = "https://rest-test.immedia-semi.com/api/v3/media/accounts/9999/networks/test/1234/thumbnail/thumbnail.jpg?ts=1357924680&ext="
207+
thumb_endpoint = "https://rest-test.immedia-semi.com/api/v3/media/accounts/9999/networks/5678/test/1234/thumbnail/thumbnail.jpg?ts=1357924680&ext="
208208
config = {
209209
"name": "new",
210210
"id": 1234,
@@ -250,7 +250,7 @@ def test_thumb_return_none(self, mock_resp):
250250

251251
def test_new_thumb_url_returned(self, mock_resp):
252252
"""Test that thumb handled properly if new url returned."""
253-
thumb_return = "/api/v3/media/accounts/9999/networks/test/1234/thumbnail/thumbnail.jpg?ts=1357924680&ext="
253+
thumb_return = "/api/v3/media/accounts/9999/networks/5678/test/1234/thumbnail/thumbnail.jpg?ts=1357924680&ext="
254254
config = {
255255
"name": "new",
256256
"id": 1234,

0 commit comments

Comments
 (0)