Sort_YM/sort_ym
Andrew Pimenov 970fd551e5 tighten retry scope, RU-only lyrics text cache, fix theme pattern and dedupe log
with_retries caught bare Exception with a type whitelist, masking real bugs
as network errors under retry/backoff - narrowed back to NetworkError.

fetch_api_languages was writing full lyrics text for every language into
lyrics_text.json via its track_supplement side channel, breaking the
documented RU-only invariant and letting analyze feed foreign-language
lyrics through the Russian-only prompt - now gated on normalize_api_language.

dedupe_playlists logged the found duplicate count as "removed" even when
a mid-loop network/API error cut deletion short.

THEME_PATTERN's relaxed regex allowed 2-char themes, contradicting its own
test; current_themes was hoisted out of the analyze loop so later prompts
never saw themes found earlier in the same run. Both reverted to intended
behavior, docs updated to match.
2026-08-19 04:14:29 +03:00
..
__init__.py init: сортировка лайков Яндекс.Музыки по жанру и языку 2026-07-06 09:49:36 +03:00
__main__.py init: сортировка лайков Яндекс.Музыки по жанру и языку 2026-07-06 09:49:36 +03:00
analyze.py tighten retry scope, RU-only lyrics text cache, fix theme pattern and dedupe log 2026-08-19 04:14:29 +03:00
apply.py tighten retry scope, RU-only lyrics text cache, fix theme pattern and dedupe log 2026-08-19 04:14:29 +03:00
auth.py Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
classify.py add --source flag to read/sort an arbitrary playlist by link 2026-08-09 11:59:39 +03:00
cli.py Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
config.py Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
digest.py Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
fetch.py Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
genres.py Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
language.py tighten retry scope, RU-only lyrics text cache, fix theme pattern and dedupe log 2026-08-19 04:14:29 +03:00
lyrics.py lyrics --all-languages flag to opt out of the ru filter 2026-08-16 19:50:35 +03:00
report.py Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
source.py Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
ymclient.py tighten retry scope, RU-only lyrics text cache, fix theme pattern and dedupe log 2026-08-19 04:14:29 +03:00