Skip to content
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

allow mulitple instances of %id% in iframe src #1181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vmanera
Copy link

@vmanera vmanera commented Apr 12, 2022

Passing in the same video id as a playlist parameter allows the video to loop. To do this we need multiple replacements of the %id%.

This PR simply changes this to a global string match so all instances of the %id% template is replaced.

eg.
https://www.youtube.com/embed/q3uXXh1sHcI?autoplay=1&loop=1&playlist=q3uXXh1sHcI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant