Reopen - Youtu.be doesn't seem to work with Media Library and Fitvids

Created on 23 December 2023, 11 months ago

The fix for the issue https://www.drupal.org/project/fitvids/issues/3200810 is not working.

I'll create a new PR for this one.

- Extra providers should only be added as root domain, e.g. but dailymotion.com instead of http://www.dailymotion.com,
- Selector should be added with "*" instead of "^" as in the jquery.fitvids library.

Problem/Motivation

When Remote video in Drupal Media Library is used to store and add videos in Drupal, URLs with youtube.com is presented correct with Fitvids activated. But when the shorter URL, that often is used when using YouTubes sharing possibilities, youtu.be is the URL Fitvids doesn't catch this thus rendering the video in a non-fitvid manner.

Steps to reproduce

  1. Install and activate Fitvids module
  2. Activate Media Library with the possibility to add Remote video to the library.
  3. Add a URL with youtube.com in the URL, for example https://www.youtube.com/watch?v=Lrj2Hq7xqQ8
  4. Insert the video in the body
  5. Add a URL with the shorter youtu.be in the URL, for example https://youtu.be/DsC8jQXRbQE
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇹🇷Turkey makbay

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024