5 Commits

Author SHA1 Message Date
b404d8b3d7 fix: guard against floating-point precision error in video subclip end_time MoviePy raises ValueErr 2026-05-11 17:15:05 +00:00
Guillem Hernandez Sola
a898d66fe7 Fixes 2026-05-11 12:50:49 +02:00
Guillem Hernandez Sola
124a1c5169 Small fix 2026-05-11 12:49:20 +02:00
Guillem Hernandez Sola
2e38f048ae fix: always upload photos independently of video embed outcome
Previously, photo uploads were nested inside the `else` branch of
`if not video_embed`, meaning photos were only processed when a video
embed succeeded. This caused photo-only tweets to be posted as
text-only because `has_video` was never set, `video_embed` remained
None, and the photo loop was never reached.

Decouple photo collection from video outcome: warn if video failed,
then unconditionally iterate over media items to upload any photos
present. External link card logic is unchanged and still only triggers
when both video and image embeds are absent.
2026-05-11 12:48:13 +02:00
Guillem Hernandez Sola
02dc073213 Renames 2026-05-11 12:39:40 +02:00