(host, app_id=None)
return (FORMAT_APP_PATH.format(host, app_id) if app_id
            else FORMAT_BASE_URL.format(host))
Helper method to create a ChromeCast url given
        a host and an optional app_id.
Helper method to create a ChromeCast url given
        a host and an optional app_id.
Helper method to create a ChromeCast url given a host and an optional app_id .
def _craft_app_url(host, app_id=None):
    """ Helper method to create a ChromeCast url given
        a host and an optional app_id. """
    return (FORMAT_APP_PATH.format(host, app_id) if app_id
            else FORMAT_BASE_URL.format(host))
def _craft_app_url ( host , app_id = None ) : return ( FORMAT_APP_PATH . format ( host , app_id ) if app_id else FORMAT_BASE_URL . format ( host ) )