def stream_type_priority(stream_types, stream):
    stream_type = type(stream[1]).shortname()

    try:
        prio = stream_types.index(stream_type)
    except __HOLE__:
        prio = 99

    return prio
dataset/ETHPy150Open chrippa/livestreamer/src/livestreamer/plugin/plugin.py/stream_type_priority