JonnyBurger / pipcorn

🍿 Watch YouTube videos on your Mac via CLI
MIT License
164 stars 5 forks source link

Handle `t` query param #4

Open dmtrKovalenko opened 4 years ago

dmtrKovalenko commented 4 years ago

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 🍿

JonnyBurger commented 4 years ago

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