feat: add multi-language support to rss2bsky via --lang flag

- Changed `post_lang: str` to `post_langs: List[str]` in `run_once`
  and `try_send_post_with_variants` to support multiple BCP-47 language
  tags passed to Bluesky's `langs=` field.

- Updated `--lang` CLI argument to accept comma-separated language codes
  (e.g. `--lang ca,es`), parsed into a list at startup. Defaults to `["ca"]`.

- Added startup log line reporting the configured language(s) per run.
This commit is contained in:
Guillem Hernandez Sola
2026-05-05 14:00:48 +02:00
parent 09b9d16791
commit 33b4e32738
2 changed files with 25 additions and 11 deletions

View File

@@ -51,7 +51,8 @@ pipeline {
"$BSKY_CRUNCHYROLL_HANDLE" \
"$TWITTER_CRUNCHY_EMAIL" \
"$BSKY_CRUNCHYROLL_APP_PASSWORD" \
--service "https://eurosky.social"
--service "https://eurosky.social" \
--lang es
'''
}
}