Skip to content

Commit

Permalink
dev(narugo): optimize, ci skip
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Aug 27, 2024
1 parent 22f5d43 commit 034fbb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zoo/arknights.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def get_cv_list(lang):
}

for key, value in d["voiceLangDict"].items():
if value['charId'] == key and key.startswith('char_') and mt[lang] in value['dict']:
if value['charId'] == key and key.startswith('char_') and mt[lang] in value['dict'] and \
len(value['dict'][mt[lang]]['cvName']) == 1:
yield key, value['dict'][mt[lang]]['cvName'][0]


Expand Down Expand Up @@ -79,7 +80,8 @@ def get_text_for_lang(lang):
'voice_title': value['voiceTitle'],
'voice_type': value['voiceType'],
'word_key': value['wordKey'],
'file_url': f'https://torappu.prts.wiki/assets/audio/{vmap[lang]}/{value["charId"]}/{value["voiceId"].lower()}.wav',
'file_url': f'https://torappu.prts.wiki/assets/audio'
f'/{vmap[lang]}/{value["wordKey"].replace("#", "__")}/{value["voiceId"].lower()}.wav',
})

return pd.DataFrame(rows)
Expand Down

0 comments on commit 034fbb8

Please sign in to comment.