Youtube links with m.youtube.com don't work (the provider can't be detected because of the "m" in place of the "www").

Also, when the provider isn't found, the module calls hook_shortcode_info_alter() which is not right. Instead, it should call hook_shortcode_alter() (hook_shortcode_alter() actually doesn't exist, but we definitely can't use info_alter because it has a completely different job with completely different arguments. Calling it here causes a fatal error).

I'll upload a patch with the fix shortly.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

khaled.zaidan created an issue. See original summary.

khaled.zaidan’s picture

Status: Active » Needs review
StatusFileSize
new877 bytes

Patch attached.

denes.szabo made their first commit to this issue’s fork.

  • denes.szabo committed 1200de7b on 3.0.x
    feature: #3195172 Accept any YouTube subdomain, not just www., for...
denes.szabo’s picture

Version: 7.x-1.3 » 3.0.0
Assigned: khaled.zaidan » denes.szabo
Status: Needs review » Fixed

@khaled.zaidan thank you for your contribution, the. next release will contains this feature!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

denes.szabo’s picture

Assigned: denes.szabo » Unassigned
Status: Fixed » Closed (fixed)