Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Now that #1911970: The audio, image, and video file types should default to a wildcard mimetype selector has been committed which defaults the video file type to include all video/* mimetypes, the problematic code in media_youtube_update_7202() should be wiped out so that it does nothing. This update hook should have been an indication at a problem in the configurable file types which has now been fixed.
Comments
Comment #1
Dave Reidmedia_youtube_file_default_types_alter() also needs to be removed
Comment #2
Dave ReidFixed with http://drupalcode.org/project/media_youtube.git/commit/93c7a60
Comment #3
gmclelland CreditAttribution: gmclelland commentedWould we need to do the same thing for media_vimeo?
Comment #4
Dave ReidCorrect, you'd want to remove that function as well. But not the media_vimeo_file_mimetype_mapping_alter() function.
Comment #5
gmclelland CreditAttribution: gmclelland commentedHere is the same issue for media_vimeo with a similar patch posted #1950188: Remove media_vimeo_update_7200() and media_vimeo_file_default_types_alter()