mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: allow renaming & merging of trackers with config (part 1 #8355) (#8608) * rename site field to id in yaml indexers * add id field in c# indexers * use id field instead of class name in c#
This commit is contained in:
@@ -60,19 +60,20 @@ namespace Jackett.Common.Indexers
|
||||
{"greys anatomy", "grey's anatomy"}
|
||||
};
|
||||
|
||||
public BJShare(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) :
|
||||
base("BJ-Share",
|
||||
description: "A brazilian tracker.",
|
||||
link: "https://bj-share.info/",
|
||||
caps: new TorznabCapabilities
|
||||
{
|
||||
SupportsImdbMovieSearch = true
|
||||
},
|
||||
configService: configService,
|
||||
client: wc,
|
||||
logger: l,
|
||||
p: ps,
|
||||
configData: new ConfigurationDataBasicLoginWithRSSAndDisplay())
|
||||
public BJShare(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
|
||||
: base(id: "bjshare",
|
||||
name: "BJ-Share",
|
||||
description: "A brazilian tracker.",
|
||||
link: "https://bj-share.info/",
|
||||
caps: new TorznabCapabilities
|
||||
{
|
||||
SupportsImdbMovieSearch = true
|
||||
},
|
||||
configService: configService,
|
||||
client: wc,
|
||||
logger: l,
|
||||
p: ps,
|
||||
configData: new ConfigurationDataBasicLoginWithRSSAndDisplay())
|
||||
{
|
||||
Encoding = Encoding.UTF8;
|
||||
Language = "pt-br";
|
||||
@@ -373,7 +374,7 @@ namespace Jackett.Common.Indexers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error($"{ID}: Error while parsing row '{row.OuterHtml}': {ex.Message}");
|
||||
logger.Error($"{Id}: Error while parsing row '{row.OuterHtml}': {ex.Message}");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -502,7 +503,7 @@ namespace Jackett.Common.Indexers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error($"{ID}: Error while parsing row '{row.OuterHtml}': {ex.Message}");
|
||||
logger.Error($"{Id}: Error while parsing row '{row.OuterHtml}': {ex.Message}");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Reference in New Issue
Block a user