Commit Graph

21 Commits

Author SHA1 Message Date
Guillem Hernandez Sola
33b4e32738 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.
2026-05-05 14:00:48 +02:00
Guillem Hernandez Sola
ea46714ca5 Fix regex in strip_trailing_url_punctuation to properly escape special characters
- Corrected the regular expression in the `strip_trailing_url_punctuation` function to properly escape the single quote (') and ensure valid syntax.
- Fixed potential issues caused by unescaped characters in the regex pattern.
2026-04-28 17:35:02 +02:00
Guillem Hernandez Sola
67a4152be3 Ellipsis erased 2026-04-28 17:26:42 +02:00
Guillem Hernandez Sola
c850965147 Reverted 2026-04-28 17:23:08 +02:00
Guillem Hernandez Sola
b36c06b529 Fixed 2026-04-28 14:27:48 +02:00
Guillem Hernandez Sola
591a6d9563 Refactor text truncation logic in rss2bsky.py to remove ellipsis
- Updated the text truncation logic to avoid using "..." when shortening text.
- Ensured that text is truncated to the maximum allowed length without additional trailing characters.
- Improved handling of text variants to maintain clarity and avoid unnecessary truncation.
2026-04-28 14:23:36 +02:00
Guillem Hernandez Sola
253aa765ba Fixed RSS ellipsis 2026-04-27 18:48:47 +02:00
Guillem Hernandez Sola
90938f65b4 Added length in RSS 2026-04-24 09:27:25 +02:00
Guillem Hernandez Sola
baa055a36e Added some rss fixes 2026-04-18 11:18:55 +02:00
Guillem Hernandez Sola
bdeec32a25 Added some login fixes 2026-04-18 10:50:47 +02:00
4a416d8468 Updared RSS 2026-04-14 19:33:04 +00:00
Guillem Hernandez Sola
ed85113d27 Added refactor on RSS 2026-04-14 18:32:04 +02:00
07bfd5e2d5 feat(rss): improve external card thumbnail uploads with stronger compression and shorter cooldowns 2026-04-13 09:47:28 +02:00
793a56af58 Fixes for 429
- fix SyntaxError caused by global STATE_PATH/COOLDOWN_STATE_PATH usage in main()
- pass state and cooldown paths explicitly to helpers
- add emoji-based logging for login, posting, cooldown, and summary events
- keep shared cooldown behavior across parallel Jenkins workers
2026-04-10 19:58:39 +00:00
f4fb1a9af1 Fixes for 429
- persist post and thumbnail cooldowns to shared JSON state
- check global cooldown before login and before posting
- stop parallel workers from repeatedly hitting createRecord after first 429
- add clear post start/success/failure/global-cooldown logs
- reduce traceback noise for expected rate-limit failures
2026-04-10 19:51:20 +00:00
e158f99cf8 fix(rss): stop posting after Bluesky createRecord rate limit and add clear post start/finish logs 2026-04-10 19:28:28 +00:00
28dfe6d718 fix(rss): avoid truncated title+url post variants that create ellipsis posts 2026-04-10 09:35:27 +02:00
Guillem Hernandez Sola
0d41c48b7a fix(rss): add thumbnail upload cooldown after Bluesky blob rate-limit exhaustion 2026-04-09 18:50:55 +02:00
Guillem Hernandez Sola
e2051baffe fix(rss): try full title+link posts before truncation and add production-safe fallback strategy 2026-04-09 18:40:58 +02:00
Guillem Hernandez Sola
7d8e8bf72a feat(rss): add JSON state-based post control and robust duplicate detection 2026-04-09 18:28:05 +02:00
Guillem Hernandez Sola
57bf1aab81 chore: update and merge gitignore 2026-03-29 17:44:14 +02:00