Rank is not essential data
This commit is contained in:
parent
c8bda282d1
commit
ae5243288d
|
@ -57,7 +57,6 @@ class Track:
|
||||||
self.id = str(trackAPI_gw['SNG_ID'])
|
self.id = str(trackAPI_gw['SNG_ID'])
|
||||||
self.duration = trackAPI_gw['DURATION']
|
self.duration = trackAPI_gw['DURATION']
|
||||||
self.trackToken = trackAPI_gw['TRACK_TOKEN']
|
self.trackToken = trackAPI_gw['TRACK_TOKEN']
|
||||||
self.rank = trackAPI_gw['RANK_SNG']
|
|
||||||
self.MD5 = trackAPI_gw.get('MD5_ORIGIN')
|
self.MD5 = trackAPI_gw.get('MD5_ORIGIN')
|
||||||
if not self.MD5:
|
if not self.MD5:
|
||||||
if trackAPI and trackAPI.get('md5_origin'):
|
if trackAPI and trackAPI.get('md5_origin'):
|
||||||
|
@ -205,6 +204,7 @@ class Track:
|
||||||
self.ISRC = trackAPI_gw.get('ISRC')
|
self.ISRC = trackAPI_gw.get('ISRC')
|
||||||
self.trackNumber = trackAPI_gw['TRACK_NUMBER']
|
self.trackNumber = trackAPI_gw['TRACK_NUMBER']
|
||||||
self.contributors = trackAPI_gw['SNG_CONTRIBUTORS']
|
self.contributors = trackAPI_gw['SNG_CONTRIBUTORS']
|
||||||
|
self.rank = trackAPI_gw['RANK_SNG']
|
||||||
|
|
||||||
self.lyrics = Lyrics(trackAPI_gw.get('LYRICS_ID', "0"))
|
self.lyrics = Lyrics(trackAPI_gw.get('LYRICS_ID', "0"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue