def get_status_old(code):
    """Get the torrent status using old status codes"""
    mapping = {(1 << 0): 'check pending', (1 << 1): 'checking', (1 << 2):
        'downloading', (1 << 3): 'seeding', (1 << 4): 'stopped'}
    return mapping[code]
