Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the amp-youtube component by adding support for a new attribute, data-channelid. Instead of embedding a channel directly—which YouTube does not support in AMP—this feature converts the provided channel ID (which starts with "UC") into its corresponding uploads playlist ID (by replacing "UC" with "UU"). This approach allows developers to embed the channel's uploads playlist, ensuring that the latest videos from the channel are displayed.
Changes
channelid_
to store the value from data-channelid.Testing
Related Issues
Closes #[26304] (if applicable)
Conclusion
This PR provides a robust solution for embedding a YouTube channel’s uploads playlist in AMP, addressing the limitation that YouTube does not support direct channel embedding. Please review the changes and provide feedback.