pipcorn icon indicating copy to clipboard operation
pipcorn copied to clipboard

Handle `t` query param

Open dmtrKovalenko opened this issue 5 years ago • 1 comments

Youtube has specified t param contains amount of seconds you watched. Like when I am watching some video, then just copy the link and continue watching from the same point.

Giant thanks for this package 🍿

dmtrKovalenko avatar Mar 09 '20 16:03 dmtrKovalenko

I would accept a PR, it seems possible from ytdl-core docs:

begin - What time in the video to begin. Supports formats 00:00:00.000, 0ms, 0s, 0m, 0h, or number of milliseconds. Example: 1:30, 05:10.123, 10m30s. For live videos, this also accepts a unix timestamp or Date, and defaults to Date.now(). This option is not very reliable, see #129, #219.

We have to be vary that it doesn't seem to work totally reliably

JonnyBurger avatar Mar 10 '20 10:03 JonnyBurger