fixed hifi check
This commit is contained in:
parent
e486befd18
commit
1b6b994b8b
|
@ -3,7 +3,7 @@
|
|||
// @namespace io.github.uhwot.dzunlock
|
||||
// @description enables deezer hifi features lol
|
||||
// @author uh wot
|
||||
// @version 1.1
|
||||
// @version 1.1.1
|
||||
// @homepageURL https://git.freezer.life/uhwot/dzunlock
|
||||
// @downloadURL https://git.freezer.life/uhwot/dzunlock/raw/branch/master/dzunlock.user.js
|
||||
// @icon https://cdns-files.dzcdn.net/cache/images/common/favicon/favicon-96x96.852baf648e79894b668670e115e4a375.png
|
||||
|
@ -141,7 +141,7 @@ async function renewAccessToken() {
|
|||
unsafeWindow.dzPlayer.setTrackList = (function (old) {
|
||||
return async function (...args) {
|
||||
// don't get filesizes if account is hifi
|
||||
if (unsafeWindow.dzPlayer.user_status.audio_qualities.wifi_download.includes('lossless')) {
|
||||
if (unsafeWindow.dzPlayer.user_status.lossless) {
|
||||
return old(...args)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue