Rank is not essential data

This commit is contained in:
RemixDev 2021-09-21 08:53:05 +02:00
parent c8bda282d1
commit ae5243288d

View file

@ -57,7 +57,6 @@ class Track:
self.id = str(trackAPI_gw['SNG_ID'])
self.duration = trackAPI_gw['DURATION']
self.trackToken = trackAPI_gw['TRACK_TOKEN']
self.rank = trackAPI_gw['RANK_SNG']
self.MD5 = trackAPI_gw.get('MD5_ORIGIN')
if not self.MD5:
if trackAPI and trackAPI.get('md5_origin'):
@ -205,6 +204,7 @@ class Track:
self.ISRC = trackAPI_gw.get('ISRC')
self.trackNumber = trackAPI_gw['TRACK_NUMBER']
self.contributors = trackAPI_gw['SNG_CONTRIBUTORS']
self.rank = trackAPI_gw['RANK_SNG']
self.lyrics = Lyrics(trackAPI_gw.get('LYRICS_ID', "0"))