'Bring old configs up to date'

def _upgrade(self):

    if (self.CONFIG_VERSION == '2'):
        if self.ENCODERFOLDER:
            self.ENCODER_PATH = os.path.join(self.ENCODERFOLDER, self.ENCODER)
        self.CONFIG_VERSION = '3'
    if (self.CONFIG_VERSION == '3'):
        if self.BLACKHOLE:
            self.NZB_DOWNLOADER = 2
        self.CONFIG_VERSION = '4'
    if (self.CONFIG_VERSION == '4'):
        if (self.HPUSER and self.HPPASS):
            self.HEADPHONES_INDEXER = True
        self.CONFIG_VERSION = '5'
    if (self.CONFIG_VERSION == '5'):
        if self.OPEN_MAGNET_LINKS:
            self.MAGNET_LINKS = 2
        self.CONFIG_VERSION = '5'
