Skip to content

Commit

Permalink
Do not fail data_structure_upgrade if no uri is present. Closes #702.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Nielsen committed Apr 13, 2020
1 parent 27dca8b commit 989f6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soco/data_structures_entry.py
Expand Up @@ -79,7 +79,7 @@ def attempt_datastructure_upgrade(didl_item):
_LOG.debug("Upgrade not possible, no resources")
return didl_item

if resource.uri.startswith("x-sonos-http"):
if resource.uri and resource.uri.startswith("x-sonos-http"):
# Get data
uri = resource.uri
# Now we need to create a DIDL item id. It seems to be based on the uri
Expand Down

0 comments on commit 989f6af

Please sign in to comment.