Skip to content

Commit

Permalink
Merge pull request #60 from chemelli74/patch-1
Browse files Browse the repository at this point in the history
Fix media browser when no snapshot available
  • Loading branch information
elad-bar authored Dec 28, 2023
2 parents 9eb204e + 25bc57e commit d618c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/shinobi/media_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ async def _async_build_monitors(
if monitor_data is not None:
snapshot = monitor_data.snapshot

if snapshot.startswith("/"):
if snapshot and snapshot.startswith("/"):
snapshot = snapshot[1:]

snapshot = api.build_proxy_url(f"{{base_url}}{snapshot}")
Expand Down

0 comments on commit d618c06

Please sign in to comment.