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.
Allow editing of the URI for Youtube etc. The URI/embed code for Youtube and similar is just a string and is sometimes entered with the wrong value. Let the admin change the value.
Comment | File | Size | Author |
---|---|---|---|
#9 | media-edit_uri_for_remote_files-2297685-9.patch | 1.79 KB | chrisgross |
| |||
#7 | media-edit_uri_for_remote_files-2297685-6.patch | 1.69 KB | chrisgross |
|
Comments
Comment #1
chrisgross CreditAttribution: chrisgross commentedIt looks like this is not currently supported. I started writing a patch for media_youtube, and then I realized that it was a lot more complicated due to the fact that media_internet is what handles this.
Comment #2
chrisgross CreditAttribution: chrisgross commentedComment #3
chrisgross CreditAttribution: chrisgross commentedHere's a patch that adds this feature. From my limited testing, I've yet to see any ill effects.Okay, so this actually adds a new file. Needs work.
Comment #4
chrisgross CreditAttribution: chrisgross commentedHere's one that actually works.Comment #5
chrisgross CreditAttribution: chrisgross commentedand here's one with exception handling.
Comment #6
chrisgross CreditAttribution: chrisgross commentedComment #7
chrisgross CreditAttribution: chrisgross commented...and here's one that's actually diff'd against an UNPATCHED beta1. Testing is hard.
Comment #8
chrisgross CreditAttribution: chrisgross commentedComment #9
chrisgross CreditAttribution: chrisgross commentedHere's an updated patch with better condition checking.
Comment #10
joseph.olstadNice work, leaning more towards putting this new functionality into the 7.x-3.x branch of media
Needs review+
Comment #11
joseph.olstadlooks good for both 7.x-2.x and 7.x-3.x
Comment #14
joseph.olstadComment #16
joseph.olstadabove patch caused regression in media_internet
Comment #20
joseph.olstadComment #21
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedRecent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.
Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.
As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.
Thanks,
Media team
Comment #22
sirtetI just had to replace a youtube video.
Currently you have to add a new file entity and replace it whereever u have used the old one. Thankfully there's the USAGE tab on every file, which shows you the places you have to edit.
For that use-case, it would be much easyer if the remote video's url was editable.
That would be the equivalent workflow as with local image-files, where you can replace the file.
I am surprised there are not more requests for this, but i would vote for re-opening the issue as it is a reasonable feature-request.