Skip to content

Video duration

fact: video_duration looks up the length of an embedded Bluesky video from its HLS playlist (embed.playlist) and returns the duration in seconds. Posts without a video, or where the playlist cannot be read, do not match duration comparisons.

The example below hides videos shorter than 5 seconds or longer than 60 seconds:

rules:
- name: Keep mid-length videos
conditions:
any:
- fact: video_duration
operator: lessThan
value: 5
- fact: video_duration
operator: greaterThan
value: 60
event:
type: hide

Feed settings also include a Video duration toggle that compiles this kind of rule for you (Allow / Require approval / Hide / Remove, with min and max sliders from 0:00 to 10:00).