Handle both status code 301 and 302 from jackett
This commit is contained in:
@@ -12,7 +12,7 @@ function getMagnetFromURL(url) {
|
||||
resolve(url)
|
||||
|
||||
http.get(options, (res) => {
|
||||
if (res.statusCode == 301) {
|
||||
if (res.statusCode == 301 || res.statusCode == 302) {
|
||||
resolve(res.headers.location)
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user