Classes | |
| class | CastStatusListener |
| class | ChromecastInfo |
| class | ChromeCastZeroconf |
| class | PlaylistError |
| class | PlaylistItem |
| class | PlaylistSupported |
Functions | |
| def | _fetch_playlist (hass, url, supported_content_types) |
| def | _is_url (url) |
| def | parse_m3u (hass, url) |
| def | parse_playlist (hass, url) |
| def | parse_pls (hass, url) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | _PLS_SECTION_PLAYLIST = "playlist" |
Helpers to deal with Cast devices.
|
private |
Fetch a playlist from the given url.
Definition at line 247 of file helpers.py.
|
private |
Validate the URL can be parsed and at least has scheme + netloc.
Definition at line 241 of file helpers.py.
| def homeassistant.components.cast.helpers.parse_m3u | ( | hass, | |
| url | |||
| ) |
Very simple m3u parser. Based on https://github.com/dvndrsn/M3uParser/blob/master/m3uparser.py
Definition at line 267 of file helpers.py.
| def homeassistant.components.cast.helpers.parse_playlist | ( | hass, | |
| url | |||
| ) |
Parse an m3u or pls playlist.
Definition at line 360 of file helpers.py.
| def homeassistant.components.cast.helpers.parse_pls | ( | hass, | |
| url | |||
| ) |
Very simple pls parser. Based on https://github.com/mariob/plsparser/blob/master/src/plsparser.py
Definition at line 315 of file helpers.py.
|
private |
Definition at line 27 of file helpers.py.
|
private |
Definition at line 29 of file helpers.py.