temporal fix to
youtube videos
youtube changed the format for prevent downloads.
example:
before, --> link:
http://www.youtube.com/watch?v=qwyW0vRxefM and the before,--> download link:
http://youtube.com/get_video.php?video_id=qwyW0vRxefM
now,--> link:
http://www.youtube.com/watch?v=qwyW0vRxefM
now,--> download link:
http://youtube.com/get_video?video_id=qwyW0vRxefM&t=OEgsToPDskIY57PMLPbv93vbordcNAfg
extra code-->(&t=OEgsToPDskIY57PMLPbv93vbordcNAfg) <--- extra code
if your have your youtube videos into [media] tag, and not view... you can apply this fix.
in
Create AnyMedia BBCode pluggin search:
Code:
$media['url'] = "http://youtube.com/get_video.php?video_id=".$match[1];
$media['extension'] = "flv";
and replace for:
Code:
$youtube = $match[1];
$media['extension'] = "flv2";
search:
underneath add:
Code:
case 'flv2':
$media['type']='youtubes';
break;
in a
nymedia template search:
Code:
<if condition="$media[type]=='adobe_flash'">
<!-- Abode Flash -->
before add:
Code:
<if condition="$media[type]=='youtubes'">
<object width="$media[width]" height="$media[height]"><param name="movie" value="http://www.youtube.com/v/$youtube"></param><embed src="http://www.youtube.com/v/$youtube" type="application/x-shockwave-flash" width="$media[width]" height="$media[height]"></embed></object></if>
add the extension in
AnyMedia BBCode Options-->
Supported extensions (
,flv2)
see screenshots ... test it :tired: