lostfilm: more alternate sites #11879

This commit is contained in:
Garfield69 2021-06-07 15:49:01 +12:00
parent c1322b07ca
commit 91bfb1adaa
1 changed files with 10 additions and 4 deletions

View File

@ -23,12 +23,17 @@ namespace Jackett.Common.Indexers
internal class LostFilm : BaseWebIndexer internal class LostFilm : BaseWebIndexer
{ {
public override string[] LegacySiteLinks { get; protected set; } = { public override string[] LegacySiteLinks { get; protected set; } = {
"https://www.lostfilm.tv/", "https://lostfilm.site" // redirects to *.tw
"https://www.lostfilm.uno/"
}; };
public override string[] AlternativeSiteLinks { get; protected set; } = { public override string[] AlternativeSiteLinks { get; protected set; } = {
"https://www.lostfilm.run/" "https://www.lostfilm.run/",
"https://www.lostfilmtv.site/",
"https://www.lostfilm.tv/",
"https://www.lostfilm.win/",
"https://lostfilm.tw/",
"https://www.lostfilm.uno/"
}; };
private static readonly Regex parsePlayEpisodeRegex = new Regex("PlayEpisode\\('(?<id>\\d{1,3})(?<season>\\d{3})(?<episode>\\d{3})'\\)", RegexOptions.Compiled | RegexOptions.IgnoreCase); private static readonly Regex parsePlayEpisodeRegex = new Regex("PlayEpisode\\('(?<id>\\d{1,3})(?<season>\\d{3})(?<episode>\\d{3})'\\)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex parseReleaseDetailsRegex = new Regex("Видео:\\ (?<quality>.+).\\ Размер:\\ (?<size>.+).\\ Перевод", RegexOptions.Compiled | RegexOptions.IgnoreCase); private static readonly Regex parseReleaseDetailsRegex = new Regex("Видео:\\ (?<quality>.+).\\ Размер:\\ (?<size>.+).\\ Перевод", RegexOptions.Compiled | RegexOptions.IgnoreCase);
@ -125,7 +130,8 @@ namespace Jackett.Common.Indexers
Language = "ru-ru"; Language = "ru-ru";
Type = "semi-private"; Type = "semi-private";
webclient.AddTrustedCertificate(new Uri(SiteLink).Host, "25234600906DF82792DE9F4AA75A5AED2F226577"); webclient.AddTrustedCertificate(new Uri(SiteLink).Host, "25234600906DF82792DE9F4AA75A5AED2F226577"); // for *.run expired 07/Jun/21
webclient.AddTrustedCertificate(new Uri(SiteLink).Host, "34287FB53A58EC6AE590E7DD7E03C70C0263CADC"); // for *.tw expired 01/Apr/21
// TODO: review if there is only this category (movie search is enabled) // TODO: review if there is only this category (movie search is enabled)
AddCategoryMapping(1, TorznabCatType.TV); AddCategoryMapping(1, TorznabCatType.TV);