"New from URL" fails for long URL with parameters (YouTube)
I'd like to use the "New from URL" function to download Youtube videos to my owncloud 4.5.5 instance. The problem is that it doesn't work with the kind of long URLs with parameters one needs to download the videos, either because the URL is too long or owncloud has trouble handling the parameters.
Example: Using the Firefox Addon "Download YouTube Videos as MP4 and FLV " , a video about owncloud (http://www.youtube.com/watch?v=YyyZkeTE3jA) results in the following download URL which works fine in Firefox but fails when trying to get owncloud to download it.
It seems to me the problem is that the filename owncloud is trying to store the downloaded URL as is invalid because it's an URL with special characters. It might also be it is because the URL is very long or maybe even because the parameters. I can't say for sure.
VIdeo download URL:
http://r1---sn-jvbxjv-t0ae.c.youtube.com/videoplayback?cp=U0hUS1RUUl9OS0NONF9MTlZHOnl3M3Fsd19qbWZs&expire=1356494691&key=yt1&upn=xF7un0mktkU&burst=40&algorithm=throttle-factor&id=632c9991e4c4de30&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&mv=m&source=youtube&itag=35&ms=au&fexp=907723%2C922206%2C914057%2C916626%2C900305%2C920704%2C912806%2C928001%2C922403%2C922405%2C929901%2C913605%2C929104%2C913546%2C913556%2C908496%2C920201%2C913302%2C919009%2C911116%2C901451%2C902556&ip=96.43.238.74&factor=1.25&ipbits=8&mt=1356471070&newshard=yes&sver=3&signature=033E4697E60FD94C9E99F103E8308C2D3464247A.41F3B5DD1DC799C3CA506B409F66E8E9C10C75DC&title=LinuxTag2012%20ownCloud.org%20-%20FOSS%20alternative%20to%20cloud%20data%20storage
Owncloud error message:
Error while downloading http://r1---sn-jvbxjv-t0ae.c.youtube.com/videoplayback?cp=U0hUS1RUUl9OS0NONF9MTlZHOnl3M3Fsd19qbWZs&expire=1356494691&key=yt1&upn=xF7un0mktkU&burst=40&algorithm=throttle-factor&id=632c9991e4c4de30&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&mv=m&source=youtube&itag=35&ms=au&fexp=907723%2C922206%2C914057%2C916626%2C900305%2C920704%2C912806%2C928001%2C922403%2C922405%2C929901%2C913605%2C929104%2C913546%2C913556%2C908496%2C920201%2C913302%2C919009%2C911116%2C901451%2C902556&ip=96.43.238.74&factor=1.25&ipbits=8&mt=1356471070&newshard=yes&sver=3&signature=033E4697E60FD94C9E99F103E8308C2D3464247A.41F3B5DD1DC799C3CA506B409F66E8E9C10C75DC&title=LinuxTag2012%20ownCloud.org%20-%20FOSS%20alternative%20to%20cloud%20data%20 storage to Public/videoplayback?cp=U0hUS1RUUl9OS0NONF9MTlZHOnl3M3Fsd19qbWZs&expire=1356494691&key=yt1&upn=xF7un0mktkU&burst=40&algorithm=throttle-factor&id=632c9991e4c4de30&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&mv=m&source=youtube&itag=35&ms=au&fexp=907723%2C922206%2C914057%2C916626%2C900305%2C920704%2C912806%2C928001%2C922403%2C922405%2C929901%2C913605%2C929104%2C913546%2C913556%2C908496%2C920201%2C913302%2C919009%2C911116%2C901451%2C902556&ip=96.43.238.74&factor=1.25&ipbits=8&mt=1356471070&newshard=yes&sver=3&signature=033E4697E60FD94C9E99F103E8308C2D3464247A.41F3B5DD1DC799C3CA506B409F66E8E9C10C75DC&
@lasselasse does this still occur with the new ownCloud 5? Do we have some limitation here @icewind1991?
Yes, this is unfortunately still not working, with pretty much the same error message:
Error while downloading http://r11---sn-i5h7ln7z.c.youtube.com/videoplayback?mv=m&sparams=cp,hightc,id,ip,ipbits,itag,ratebypass,source,upn,expire&source=youtube&upn=649CO4y76Zc&key=yt1&fexp=911407,904832,914072,916623,902529,902000,919512,913605,931202,900821,900823,931203,931401,908529,930807,919373,930803,906836,920201,929602,930101,930603,926403,900824,910223&cp=U0hVSVNUUV9OS0NONV9LTlVBOm5BQk1LZDE0ckJk&ip=109.45.0.27&mt=1364368639&newshard=yes&expire=1364393091&ratebypass=yes&itag=18&id=632c9991e4c4de30&ipbits=8&sver=3&hightc=yes&ms=au&signature=1304176871540E300F6E34FC6EA4F6792F5C4AAF.2BD0BB494A6E793ECB35C90148F746D4A44694DC&title=LinuxTag2012%20ownCloud.org%20-%20FOSS%20alternative%20to%20cloud%20data%20storage to //videoplayback?mv=m&sparams=cp,hightc,id,ip,ipbits,itag,ratebypass,source,upn,expire&source=youtube&upn=649CO4y76Zc&key=yt1&fexp=911407,904832,914072,916623,902529,902000,919512,913605,931202,900821,900823,931203,931401,908529,930807,919373,930803,906836,920201,929602,930101,930603,926403,900824,910223&cp=U0hVSVNUUV9OS0NONV9LTlVBOm5BQk1LZDE0ckJk&ip=109.45.0.27&mt=1364368639&newshard=yes&expire=1364393091&ratebypass=yes&itag=18&id=632c9991e4c4de30&ipbits=8&sver=3&hightc=yes&ms=au&signature=1304176871540E300F6E34FC6EA4F6792F5C4AAF.2BD0BB494A6E793ECB35C90148F746D4A44694DC&title=LinuxTag2012%20ownCloud.org%20-%20FOSS%20alternative%20to%20cloud%20data%20storage
I’m closing this issue because it has been inactive for a few months. This probably means that the issue is not reproducible or it has been fixed in a newer version.
Please reopen if the error still persists with the latest stable version (currently ownCloud 5.0.9) and then please use the issue template. You an also contribute directly by providing a patch – see the developer manual. :)
Thank you!