Piwigo / Piwigo-Embedded-Videos

Add videos to your Piwigo gallery from Dailymotion, Youtube, Vimeo, Wideo and Wat.

Home Page:http://piwigo.org/ext/extension_view.php?eid=136

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when adding Youtube video - v12b

jtoutee opened this issue · comments

Hello,
For some reason I get an error when adding a Youtube video (see screeshot below). I do this for years and not sure what has changed. Is there any possibility to get more info on the error ?
It says not to use this form for Youtube but in the same time at the bottom it says it is for Youtube (and others).
Not that the othe option, with embedded code, works (but it is a pain as you need to manually select a thumbnail photo).
The video itself is not the problem, I tried to add some previously successfully added Youtibe video but I now always have this error.
I do well specify a valid target album (this fields is set to blank after I submit the form).
Any help/hint appreciated, @plegall

image

Jerome Toutee

Happened again today, very strange : could add 4 videos norma;lly and then the error is then again ! And once the error is there, no way to get back to normal, any further addition will show the same error :-(

Hi,
I have the same issue.
Does someone have a solution?
Thanks

Hi, I have the same issue. Does someone have a solution? Thanks

Hi phil,
I think I found the exact circunstances of the issue : it is when your Youtube video is under the form of short video, with 'shorts' in the path, like this one : https://www.youtube.com/shorts/a3JL0uK-MeI
In this case the workaround is to play the video, then righ-click on the video and use the option to copy the URL of the video. It will give you another URL (for the same video) this time without the short keyword in the path, in my example : https://youtu.be/a3JL0uK-MeI and with this URL I do not encounter the issue any longer !
URL is almost the same except that www.youtube.com turns into youtube.be and there is no /shorts/ in the path.
(when I have time I will learn PHP and propose myself a correction to the code to address this issue).
Would be interested to hear from you if you confirm my finding.

Thanks jtoutee, it was the issue.