From 3d520ecf57c3b2ff93c2b87e8307c0b7f7aa5dad Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Wed, 25 Jul 2018 21:34:02 -0700 Subject: [PATCH] Add ffmpeg error handlers for 405 and 501 --- src/ffmpeg.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ffmpeg.js b/src/ffmpeg.js index 99895951..355109d2 100644 --- a/src/ffmpeg.js +++ b/src/ffmpeg.js @@ -103,8 +103,14 @@ function translateStatusCode(statusCode) { "the file to be downloaded."; case 404: return "The requested link could not be found (404)."; + case 405: + return "The website hosting the link does not support HEAD requests, " + + "so the link could not be retrieved."; case 410: return "The requested link does not exist (410 Gone)."; + case 501: + return "The requested link could not be retrieved because the server " + + "hosting it does not support CyTube's request."; case 500: case 503: return "The website hosting the audio/video link encountered an error " +