sachinchoolur/lightGallery

Account for "t" YouTube video start time GET variable, not just "start"

Opened this issue · 1 comments

Summary

Include the standard t start time GET variable in the gallery when included on a YouTube video URL.

Basic example

Standard URL

https://youtube.com/watch?v=dQw4w9WgXcQ&t=90

Short URL

https://youtu.be/dQw4w9WgXcQ?t=90

No-cookie URL

https://youtube-nocookie.com/embed/dQw4w9WgXcQ?t=90&rel=0

Motivation

The t start time GET variable is very commonly used in embeds, and is not being passed to the gallery unless first being changed from t to start.

Previously, the GET variable was split between the current format, 90, which uses seconds, and the old format, 1m30s, which used minutes and seconds separately.

As an aside, no-cookie URLs do not pass the rel=0 GET variable. This raises privacy concerns, and is probably deserving of its own issue.

Pardon, but is this project's issue queue active? I don't see much movement. Is there somewhere else I should be place my feature request?