[Core] Add option to prevent torrent link check (#12303) resolves #11865

This commit is contained in:
mikeoscar2006 2021-09-15 08:59:01 +05:30 committed by GitHub
parent 5850b6e4b1
commit 5846e9b447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ description: "Anime-Free is a RUSSIAN Semi-Private Torrent Tracker for Hentai ma
language: ru-RU
type: semi-private
encoding: windows-1251
testlinktorrent: false
links:
- https://anime-free.biz/
legacylinks:

View File

@ -5,6 +5,7 @@ description: "HellasTZ is an Greek Private site for TV / MOVIES / GENERAL"
language: el-GR
type: private
encoding: UTF-8
testlinktorrent: false
links:
- https://hellastz.com/
certificates:

View File

@ -1859,7 +1859,7 @@ namespace Jackett.Common.Indexers
continue;
var torrentLink = resolvePath(href, link);
if (torrentLink.Scheme != "magnet")
if (torrentLink.Scheme != "magnet" && Definition.Testlinktorrent)
{
// Test link
response = await HandleRedirectableRequestAsync(torrentLink.ToString(), headers);

View File

@ -39,6 +39,7 @@ namespace Jackett.Common.Models
public List<string> Links { get; set; }
public List<string> Legacylinks { get; set; }
public bool Followredirect { get; set; } = false;
public bool Testlinktorrent { get; set; } = true;
public List<string> Certificates { get; set; }
public capabilitiesBlock Caps { get; set; }
public loginBlock Login { get; set; }