fixed streaming while unlogged

This commit is contained in:
uh wot 2021-07-16 22:20:30 +02:00
parent 299ada2922
commit 7ca478fe05
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// @namespace io.github.uhwot.dzunlock // @namespace io.github.uhwot.dzunlock
// @description enables deezer hifi features lol // @description enables deezer hifi features lol
// @author uh wot // @author uh wot
// @version 1.2.1 // @version 1.2.2
// @license GPL-3.0-only // @license GPL-3.0-only
// @homepageURL https://git.freezer.life/uhwot/dzunlock // @homepageURL https://git.freezer.life/uhwot/dzunlock
// @downloadURL https://git.freezer.life/uhwot/dzunlock/raw/branch/master/dzunlock.user.js // @downloadURL https://git.freezer.life/uhwot/dzunlock/raw/branch/master/dzunlock.user.js
@ -158,6 +158,8 @@ window.addEventListener('DOMContentLoaded', (_) => {
for (let j = 0; j < formats.length; j++) { for (let j = 0; j < formats.length; j++) {
data.data[i]['FILESIZE_' + formats[j].gw] = json.batch_result[i - userUppedSoFar]['filesize_' + formats[j].api] data.data[i]['FILESIZE_' + formats[j].gw] = json.batch_result[i - userUppedSoFar]['filesize_' + formats[j].api]
} }
// for streaming while unlogged
data.data[i].MD5_ORIGIN = json.batch_result[i - userUppedSoFar].md5_origin
} }
log(data) log(data)