Hello, if i add a Vimeo Video to more then one Node i get this Error
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'vimeo://v/32138283' for key 'uri'
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | media_vimeo_error_if_insert_same_url_twice-1366410-5.patch | 615 bytes | nikosnikos |
Comments
Comment #1
kreynen commentedDoes this happen when you add media_youtube files too? My guess this is an issue with the version of the Media modle you are using. If it does happen with media_youtube as well, please open an issue in the main Media module issue queue. If not, please add the rest of the error and the version of Media you are using and I'll look into it.
Comment #2
Nightwalker3000 commentedThanks for reply,
in media_youtube i get this message:
Error: You have entered a URL for a video that is already in your library.in media_vimeo i get this error:
and it breaks the lightbox.
I'm using 7.x-1.0-beta4 .
I think its better when the user can add links as often as he wants. If a site has more then 1000 Links to Youtube/Vimeo , nobody wants to search the library to find where the video is,
Comment #3
Nightwalker3000 commentedI dont know how to submit a patch, it seems like its a known issue in media_youtube. Look at http://drupal.org/node/952422
This patch works also for Vimeo:
File: MediaInternetVimeoHandler.inc
Add this Code in class "MediaInternetVimeoHandler extends MediaInternetBaseHandler "
Comment #4
lyhcode commentedIn content management, change tab to "media", and remove the previous vimeo media.
If you delete a vimeo media in a gallery or a content.
The exists record in media will not remove automatically.
So you may remove it manually.
Comment #5
nikosnikos commentedI try to clarify because this issue is postoned (maintainer needs more info) :
When I try to add a vimeo url that was already inserted before, it fails with this exception :
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'vimeo://v/32138283' for key 'uri'In my opinion, it shouldn't fail when we try to insert an already inserted vimeo url. It should take the already inserted video without any warning.
It is possible to do that in MediaInternetVimeoHandler. I attach a patch that do that.
Edit : I've just seen that this is the solution used by media_youtube : #1213184: Allow YouTube videos to be re-used
Comment #6
nikosnikos commentedComment #7
krazykellie commentedlyhcode, where do you delete this media from? I have several that I need to readd and I keep getting the same error as listed above. But if I know where to find the files, I can delete them.
Please help!
Comment #8
nikosnikos commentedkrazykellie there's two possibilities :
I think possibility number 1 is the best, it is how media_youtube do the thing now in dev version and it's really more user friendly, and you will be able to provide your feed back on this patch.
Comment #9
RobW commentedBased on the patch in #5, the work in #1213184: Allow YouTube videos to be re-used, and the commit in http://drupalcode.org/project/media_youtube.git/commit/989be74, I think it's fine to commit this. It's been working in Media: Youtube for a while.
Committed here: http://drupalcode.org/project/media_vimeo.git/commit/959486432721e64e8fb....