duckduckdoof / discord_dreams

Some messing around with discord bots
0 stars 0 forks source link

feature: verify timestamping works, such that a link with a timestamp will start at the given url param #12

Closed Xokuraza closed 2 years ago

Xokuraza commented 2 years ago

feature: verify timestamping works, such that a link with a timestamp will start at the given url param

Xokuraza commented 2 years ago

Had to go into the ffmpeg command in order to accomplish. However, the start time exists on the youtube object returned by the url, so it was a matter of holding it (adding to the youtube object constructor), and formatting it later.

Tested against: no params, no params (but still has q), really big numbers, negative numbers. Didnt check NaN tho...