<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_token_channel(self, channel, token):
 """ Adapt a channel to include token of the logged user. Ignore default channels. """

        if (token and channel not in self.DEFAULT_CHANNELS and
                channel != 'defaults'):
            url_parts = channel.split('/')
            start = url_parts[:-1]
            middle = 't/{0}'.format(token)
            end = url_parts[-1]
            token_channel = '{0}/{1}/{2}'.format('/'.join(start), middle, end)
            return token_channel
        else:
            return channel