UnblockNeteaseMusic / server

Revive unavailable songs for Netease Cloud Music (Refactored & Enhanced version)
GNU Lesser General Public License v3.0
6.43k stars 632 forks source link

feat: whether the eapi return value is needs to be encrypted is controlled by the param ‘e_r’ (refer to NeteaseCloudMusicApi) #1454

Closed s12mmm3 closed 3 months ago

s12mmm3 commented 3 months ago

feat: whether the eapi return value is needs to be encrypted is controlled by the param ‘e_r’ (refer to NeteaseCloudMusicApi)

1715173329 commented 2 months ago

I'm getting this error on latest PC client 3.0.2, could you check it?

ERROR: (hook) A error occurred in hook.request.before when hooking https://music.163.com/api/clientlog/encrypt/upload/sysaction?multiupload=true.
    URIError: URI malformed
        at decodeURIComponent (<anonymous>)
        at /home/cnsztl/project/UnblockNeteaseMusic/src/hook.js:223:8
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

looks like the data is in binary format.

s12mmm3 commented 2 months ago

It seems that isn`t all urls that started with ‘/api’ can be hooked; Under normal conditions, there are only the urls started with '/eapi' in the client; Only by modifying the client config will urls starting with '/api' appear; So for safety, not to process the urls started with '/api' by default.