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#
and fix any yaml indexers that fail the syntax checking.
the option to ignoreUnmatchedProperties was enabled for #1549 and should have been turned off again once that task was completed.
leaving it enabled caused several unexplained behaviours in indexers where some statements were ignore by cardigann despite the intentions of the writer, and were not picked up during testing.
workaround for anime search after first modification
it for example replace like that :
One Punch Man S2 10 OR One Punch Man S2 2
BY
One Punch Man S02E10 OR One Punch Man S02E02
#5955
1. Removed sonarrv3hack and add betasearchengine instead
Search URL is https://...yggurl..../new_search/..... instead of https://...yggurl..../engine/...... when checkbox selected
new_search is less restrictive, and should work better for sonarr V3 and animes too
2. Improved the AnimeEnhancedSearch
Returning a Exxx when title contains 1 or more digits (up to 4) and surrounded by a space, dash or dot only, it could break movies search, still have to see if it would be better to just match with \d{3,4} only
```
title_anime:
text: "{{ .Result.title_phase3 }}"
filters:
# Sonarr need E in front of 3 digit number or else it thinks it is episode
# S01E10 for number 110 for example ==> enhancedAnime
- name: re_replace
args: ["(.*)(\\.| |\\-)(\\d{1,4})(\\.| |\\-)(.*)", "$1 E$3 $5"]
title:
text: "{{if .Config.enhancedAnime }}{{ .Result.title_anime }}{{else}}{{ .Result.title_phase3 }}{{end}}"
```
Doing again what was done in #4597 (and undoing what was broken in #4791)
Ex :
Search for **_la""grande""aventure""lego""2_** and you will find 3 results.
Search for **_la grande aventure lego 2_** and you'll find nothing at all.
trimed stuff on .Keyword in keywordsfilters instead of re_replace in path because it caused having %20%20 in search .Keyword instead of having only one
* Fix for YggTorrent shitty URL management. Thanks to @xfouloux for this. Fixes#4504
* Add option to perform agressive quality mapping, required for some fr anime releases
* Correct search URL for yggtorrent by default
* Revert "Add option to perform agressive quality mapping, required for some fr anime releases"
This reverts commit b74042362c.