Skip to content

Commit

Permalink
Fix media_image_url using Resource.url instead of .uri
Browse files Browse the repository at this point in the history
  • Loading branch information
chishm committed Sep 9, 2024
1 parent b0a941a commit 9bcbdcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async_upnp_client/profiles/dlna.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,8 +1208,8 @@ def media_image_url(self) -> Optional[str]:

for res in item.resources:
protocol_info = res.protocol_info or ""
if protocol_info.startswith("http-get:*:image/"):
return absolute_url(device_url, res.url)
if protocol_info.startswith("http-get:*:image/") and res.uri:
return absolute_url(device_url, res.uri)

return None

Expand Down

0 comments on commit 9bcbdcf

Please sign in to comment.