Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make unit_desc_url optional for discovery #83

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions rxv/ssdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ def rxv_details(location):
return None
ctrl_url_local = res.find(CONTROL_URL_QUERY).text
ctrl_url = urljoin(url_base_el.text, ctrl_url_local)
unit_desc_url_local = res.find(UNITDESC_URL_QUERY).text
unit_desc_url = urljoin(url_base_el.text, unit_desc_url_local)
unit_desc_url_local = res.find(UNITDESC_URL_QUERY)
if unit_desc_url_local is not None:
unit_desc_url = urljoin(url_base_el.text, unit_desc_url_local.text)
else:
unit_desc_url = None
model_name = res.find(MODEL_NAME_QUERY).text
friendly_name = res.find(FRIENDLY_NAME_QUERY).text
serial_number = res.find(SERIAL_NUMBER_QUERY).text
Expand Down