-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds start-aware youtube shortcode #10521
Adds start-aware youtube shortcode #10521
Conversation
2bd2cee
to
7bb6392
Compare
Thanks for this; Can you push the "sign CLA button" above? |
7bb6392
to
1fc0b04
Compare
@bep CLA signed, code cleaned, additional test added. LMK if there are things to change. |
Additionally, provides an extensible pattern for passing additional query parameters.
1fc0b04
to
617c956
Compare
@septs both of those suggested changes looked good, but it makes it extremely hard to review a specific change with unrelated changes coming in from the side line. |
@bep So your suggestion, if I understood it correctly, is to deconstruct this PR into:
Given that I currently have a test failure, maybe that's a better way forward so there's less complexity to review / debug. |
The construction of the query string relied on a generation method that assumed there would only ever one be parameter (`autoplay`). Adding support for an additional param e.g. `start` requires detecting whether either option was set in the shortcode, delimiting with `&` and various other logic that are captured in `querify`. Move to using `querify` and ship, under separate PR, addition of support for a `start` offset parameter (see: gohugoio#10521).
It's sometimes nice to begin a video `start`-many seconds from the beginning. Fixes gohugoio#10521.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Closes #10520