Closed s12mmm3 closed 3 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.
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.
feat: whether the eapi return value is needs to be encrypted is controlled by the param ‘e_r’ (refer to NeteaseCloudMusicApi)