Skip to content

Commit

Permalink
Add music genre identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Kito0615 committed Aug 8, 2018
1 parent a0ac393 commit 9a54f7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NetEaseMusic.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from Crypto.Cipher import AES
import base64

__DATE__ = '2018年7月17日'
__VERSION__ = 'V 0.5.0'
__DATE__ = '2018年8月8日'
__VERSION__ = 'V 0.5.2'

def get_genre_code(genre):
if genre in music_genre.keys():
Expand Down Expand Up @@ -87,7 +87,7 @@ def get_song_name_album_poster(type_id):
track = song_obj['no']
poster = album_obj['picUrl']
br = get_music_best_bitrate(song_obj)
eqs = json_obj['equalizers'].values()
eqs = list(json_obj['equalizers'].values())
genre = '13'
if len(eqs) > 0:
genre = get_genre_code(eqs[0])
Expand Down

0 comments on commit 9a54f7c

Please sign in to comment.