Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
507 stars 35 forks source link

SmartCopyPaste Suggestion: Change format to "t=" for website links #22

Closed Kerobyte closed 2 years ago

Kerobyte commented 2 years ago

Both Youtube and Twitch use the "t=" parameter for timestamps "?t=" at the start of a query or "&t=" otherwise e.g. https://www.youtube.com/watch?v=aFPJf-wKTd0&t=500s https://www.twitch.tv/videos/1157674028?t=24156s

This would be more useful for copying these links to post to other places or people that don't use this script.

Eisa01 commented 2 years ago

Earlier versions of the script had the t= parameter. Although, I changed it for some reason that I cannot recall. However, I believe the best approach would be to handle each URL separately or maybe make the parameter user configurable.

I will test it out when I am working on a new version. Thanks =)

Eisa01 commented 2 years ago

New version released which has the option to specify different parameters for each website. The default config includes youtube and twitch with their time parameters for copy.