social media crossposting tool. 3rd time's the charm
mastodon misskey crossposting bluesky

fix: media duration was.. uhh burger king footlettuce.. never converted to a float

zenfyr.dev d4679e88 de19853a

verified
+2 -1
+2 -1
cross/media.py
··· 171 171 raise ValueError("No video stream found") 172 172 173 173 media: dict[str, Any] = cast(dict[str, Any], streams[0]) 174 + duration = media.get("duration", probe["format"].get("duration")) 174 175 return MediaInfo( 175 176 width=int(media["width"]), 176 177 height=int(media["height"]), 177 - duration=media.get("duration", probe["format"].get("duration")), 178 + duration=float(duration) if duration is not None else None, 178 179 )