Skip to content

Commit

Permalink
FIX: 修复元数据填充代码中的一个错误
Browse files Browse the repository at this point in the history
  • Loading branch information
QiuChenly committed Sep 8, 2023
1 parent b3b8449 commit 972a78a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flaskSystem/src/Common/Tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ def fulfillMusicMetaData(musicFile, metaDataInfo):
label = meta['albumCollection']['company']['name']
# GENRE 流派
# genres 可能为 None
gener = meta.get('albumCollection', {}).get('basicInfo', {}).get('genres')
if gener is not None:
for it in gener:
geners = meta.get('albumCollection', {}).get('basicInfo', {}).get('genres')
if geners is not None:
for it in geners:
gener.append(it['name'])
# 专辑艺术家
albumartist = [it['name'] for it in meta['albumCollection']['singer']['singerList']]
Expand Down

0 comments on commit 972a78a

Please sign in to comment.