@staticmethod
def badges(tags) ->dict:
    """parse badges dict"""
    try:
        if 'badges' in tags and type(tags['badges']) == str:
            badges = {}
            explode = tags['badges'].split(',')
            for item in explode:
                parts = item.split('/')
                if parts[1] == None:
                    return
                badges[parts[0]] = parts[1]
            tags['badges-raw'] = tags['badges']
            tags['badges'] = badges
        if 'badges' in tags and type(tags['badges']) == bool:
            tags['badges-raw'] = None
        return tags
    except:
        pass
