()
Returns all possible app ids.
Returns all possible app ids.
Returns all possible app ids .
def get_possible_app_ids():
    """ Returns all possible app ids. """

    try:
        req = requests.get(
            "https://clients3.google.com/cast/chromecast/device/baseconfig")
        data = json.loads(req.text[4:])

        return [app['app_id'] for app in data['applications']] + \
            data["enabled_app_ids"]

    except ValueError:
        # If json fails to parse
        return []
def get_possible_app_ids ( ) : try : req = requests . get ( "https://clients3.google.com/cast/chromecast/device/baseconfig" ) data = json . loads ( req . text [ 4 : ] ) return [ app [ 'app_id' ] for app in data [ 'applications' ] ] + data [ "enabled_app_ids" ] except ValueError : # If json fails to parse return [ ]