Fixed download of local mp3s

This commit is contained in:
RemixDev 2020-10-14 23:25:29 +02:00
parent a7bba342d3
commit 06a997d957

View file

@ -65,6 +65,7 @@ class Track:
self.fallbackId = "0" self.fallbackId = "0"
if 'FALLBACK' in trackAPI_gw: if 'FALLBACK' in trackAPI_gw:
self.fallbackId = trackAPI_gw['FALLBACK']['SNG_ID'] self.fallbackId = trackAPI_gw['FALLBACK']['SNG_ID']
if int(self.id) > 0:
self.filesizes = dz.get_track_filesizes(self.id) self.filesizes = dz.get_track_filesizes(self.id)
def parseLocalTrackData(self, trackAPI_gw): def parseLocalTrackData(self, trackAPI_gw):