mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 06:06:18 -08:00
fix(xtream): pair brackets and strip the new tag forms when matching
Greptile: the bracket prefix chose its opening and closing delimiter independently, so a malformed "[EN)" was read as a language tag. Codex: recognizing a prefix is only half the job — normalizeTitleKeys has to strip the same tag, or the tagged copy never matches the bare one and multi-source cannot offer the film at all. Its leading-tag rule now shares the pipe-lookalike set and, on the pipe branch only, takes the same Latin+Cyrillic any-case alphabet with no required trailing space. Dash and colon keep their uppercase-Latin spaced form: those are ordinary punctuation, and loosening them would amputate "ОНО: Часть 2" the way a case-insensitive rule amputates "It: Chapter Two". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5349e728a
commit
2ddd38facc
7 files changed
+232
-56
No files matched your search
@@ -196,6 +196,16 @@ at its word, while a bracket or dash match must ALSO pass
|
||||
language, a fabricated one would mask a real category-derived language and
|
||||
get the row excluded by the very filter meant to find it.
|
||||
|
||||
Recognizing a prefix is only half the job: the same tag also has to be
|
||||
STRIPPED by `normalizeTitleKeys`, or the tagged copy and the bare one never
|
||||
match and the row is never discovered at all. Its leading-tag rule therefore
|
||||
shares this file's pipe set (`PROVIDER_PIPE_CLASS`) and, on the pipe branch
|
||||
only, takes the same Latin+Cyrillic any-case alphabet and needs no space
|
||||
after the separator — so "РУС | Дюна", "ru| Dune" and "EN|Dune" reach the key
|
||||
"dune". Dash and colon keep their uppercase-Latin, space-required form: those
|
||||
are ordinary title punctuation, and loosening them would amputate
|
||||
"ОНО: Часть 2" the way a case-insensitive rule amputates "It: Chapter Two".
|
||||
|
||||
The category path exists because many panels tag the CATEGORY ("EN | Netflix",
|
||||
"DE | Apple TV") and leave stream titles bare. Discovery aggregates every
|
||||
visible category name a stream sits in (`group_concat(cat.name, char(31))`
|
||||
|
||||
Reference in new issue
Block a user