add offcloud download error message

This commit is contained in:
TheBeastLT
2023-12-30 10:18:28 +02:00
parent 96879c13cd
commit ac7a5ff3aa

View File

@@ -164,7 +164,7 @@ function statusDownloading(torrent) {
}
function statusError(torrent) {
return torrent.status === 'error'
return ['error', 'canceled'].includes(torrent.status);
}
function statusReady(torrent) {
@@ -172,5 +172,5 @@ function statusReady(torrent) {
}
function errorExpiredSubscriptionError(error) {
return error?.includes && (error.includes('not_available') || error.includes('NOAUTH'));
return error?.includes && (error.includes('not_available') || error.includes('NOAUTH') || error.includes('premium membership'));
}