'Return dictionary of tags, mapping tag names to values.'

def _generate_tags(self, base=None):

    tags = {}
    for key in self.tag_fields:
        if key.startswith('rg_'):
            tags[key] = 1.0
        elif key.startswith('r128_'):
            tags[key] = (-1)
        else:
            tags[key] = ('value\\u2010%s' % key)
    for key in ['disc', 'disctotal', 'track', 'tracktotal', 'bpm']:
        tags[key] = 1
    tags['art'] = self.jpg_data
    tags['comp'] = True
    date = datetime.date(2001, 4, 3)
    tags['date'] = date
    tags['year'] = date.year
    tags['month'] = date.month
    tags['day'] = date.day
    original_date = datetime.date(1999, 5, 6)
    tags['original_date'] = original_date
    tags['original_year'] = original_date.year
    tags['original_month'] = original_date.month
    tags['original_day'] = original_date.day
    return tags
