From 216bc590da7bdad2f72643d36905617b9a303d09 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Wed, 4 Sep 2019 21:34:52 +0200 Subject: [PATCH] Do not forget about 405 - Method not allowed --- lib/manager/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/manager/download.ts b/lib/manager/download.ts index 4a53e23..b2d3796 100644 --- a/lib/manager/download.ts +++ b/lib/manager/download.ts @@ -356,7 +356,7 @@ export class Download extends BaseDownload { this.cancel(); this.error = "SERVER_UNAUTHORIZED"; } - else if (status === 400) { + else if (status === 400 || status === 405) { PREROLL_NOPE.add(this.uURL.host); } else if (status > 400 && status < 500) {