src/streamlink_cli/output.py
def supported_player(cls, cmd):
        """
        Check if the current player supports adding a title

        :param cmd: command to test
        :return: name of the player|None
        """
        if not is_win32:
            # under a POSIX system use shlex to find the actual command
            # under windows this is not an issue because executables end in .exe
            cmd = shlex.split(cmd)[0]

        cmd = os.path.basename(cmd.lower())
        for player, possiblecmds in SUPPORTED_PLAYERS.items():
            for possiblecmd in possiblecmds:
                if cmd.startswith(possiblecmd):
                    return player
def supported_player(cls, cmd):
        """
        Check if the current player supports adding a title

        :param cmd: command to test
        :return: name of the player|None
        """
        if not is_win32:
            # under a POSIX system use shlex to find the actual command
            # under windows this is not an issue because executables end in .exe
            cmd = shlex.split(cmd)[0]

        cmd = os.path.basename(cmd.lower())
        for player, possiblecmds in SUPPORTED_PLAYERS.items():
            for possiblecmd in possiblecmds:
                if cmd.startswith(possiblecmd):
                    return player
def supported_player ( cls , cmd ) : if not is_win32 : # under a POSIX system use shlex to find the actual command # under windows this is not an issue because executables end in .exe cmd = shlex . split ( cmd ) [ 0 ] cmd = os . path . basename ( cmd . lower ( ) ) for player , possiblecmds in SUPPORTED_PLAYERS . items ( ) : for possiblecmd in possiblecmds : if cmd . startswith ( possiblecmd ) : return player
Check if the current player supports adding a title

        :param cmd: command to test
        :return: name of the player|None
Check if the current player supports adding a title