anilibria: fix cs

This commit is contained in:
Bogdan
2025-06-29 13:12:41 +03:00
parent b959583f56
commit ab44e62f1d
2 changed files with 5 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ namespace Jackett.Common.Indexers.Definitions
var searchResponse = await RequestWithCookiesAsync($"{ApiBase}app/search/releases?query={searchQuery}");
var searchResults = JsonConvert.DeserializeObject<IReadOnlyList<AnilibriaSearchResult>>(searchResponse.ContentString);
var releaseIds = searchResults.Where(r => r.Id.HasValue).Select(r => r.Id.Value).ToList();
var releaseIds = searchResults.Where(r => r.Id.HasValue).Select(r => r.Id.Value).ToList();
var addRusTag = ConfigData.AddRussianToTitle.Value ? " RUS" : string.Empty;

View File

@@ -208,7 +208,8 @@ namespace Jackett.Common.Utils
{
yield return index;
index = source.IndexOf(value, index + 1);
};
}
;
}
public static IEnumerable<int> AllIndexesOf(this string source, string value)
@@ -218,7 +219,8 @@ namespace Jackett.Common.Utils
{
yield return index;
index = source.IndexOf(value, index + value.Length);
};
}
;
}
/// <summary>