mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
secretcinema: drop artist from release titles. resolves #12799
This commit is contained in:
@@ -52,6 +52,17 @@ namespace Jackett.Common.Indexers
|
||||
var results = await base.PerformQuery(query);
|
||||
// results must contain search terms
|
||||
results = results.Where(release => query.MatchQueryStringAND(release.Title));
|
||||
foreach (var release in results)
|
||||
{
|
||||
// SecretCinema loads artist with the movie director and the gazelleTracker abstract
|
||||
// places it in front of the movie separated with a dash.
|
||||
// We need to strip it or Radarr will not get a title match for automatic DL
|
||||
var artistEndsAt = release.Title.IndexOf(" - ");
|
||||
if (artistEndsAt > -1)
|
||||
{
|
||||
release.Title = release.Title.Substring(artistEndsAt + 3);
|
||||
}
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user