mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-09 13:07:25 -05:00
handle errors on deezer track streams hopefully maybe idk
This commit is contained in:
@@ -457,7 +457,14 @@ export default class Deezer implements StreamerWithLogin {
|
||||
})
|
||||
|
||||
return {
|
||||
stream: Readable.fromWeb(streamResp.body!).pipe(decryption),
|
||||
stream: Readable.fromWeb(streamResp.body!)
|
||||
.on('error', function (e) {
|
||||
throw new Error('Error while downloading track stream:' + e)
|
||||
})
|
||||
.pipe(decryption)
|
||||
.on('error', function (e) {
|
||||
throw new Error('Error while decrypting track stream:' + e)
|
||||
}),
|
||||
mimeType
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user