![]() |
1 Attachment(s)
Quote:
1. Remove your existing youtube definitions. 2. Import the AME definition attached to this post. I have modified the default version to do what we need it to do (I will also update the default for next AME release to this version). 3. Change the plugin above code to this: PHP Code:
This will basically deal with youtube links as normal, however if the URL contains fmt=18, it will make the video appear a little bigger. If the URL contains fmt=22 then it appears even bigger than that in HD. Anyhoo, tested with your 3 links above and seems to work. HTHs |
Quote:
|
Quote:
PHP Code:
PHP Code:
PHP Code:
P.S. Found a bug in PHP BB Code... Really the lines above look like: Code:
<link rel=\"canonical\" href=\"/video/([a-z_0-9-]+)\" Code:
<link rel=\"canonical\" href=\"/video/\([a-z_0-9-]+\)\" Code:
<link rel=\"canonical\" href=\"/video/(\[a-z_0-9-\]+)\" |
I think 18 is hq and 22 is hd. I'll test this now and get back to you. Great response to all this, thanks. Your addon is quite impressive.
|
Quote:
Worked for me. Export the definition and ill check it out as you have it. |
It works in terms of changing container size although the HD doesn't actually match an HD video in size. Also, for some reason when you click on the embed to go to Youtube it doesn't bring you to the HD video. I don't know if that's a Youtube or addon issue. Compare:
http://unmoderated.info/forums/showt...1683#post11683 http://www.youtube.com/watch?v=Kw2gy01gkzs&fmt=22 |
The HD size should be 853x505.
|
The sizes were just estimates I threw in. Change as it suits your forum (853 in width will break a lot of forum layouts).
When I clicked on the 3rd one, it took me to the HD version of the video, though in honesty I suspect they should have hd=1 in the URLs. THis is something Ill look into better ways to support in the future. Also, the 3rd one does play in HD, so appart from the sizes (which you can change to suit you) it works as you want doesnt it? |
Quote:
Looks like it works for me also. :eek: Better don't know why it was not working. :erm: AME Settings -> Extract destination data -> No And the notice message which has to be displayed while you were editing some definition was "Dismiss"ed a long time ago. :o The Geek, I promise, I will punish myself. Really sorry. Excuse me! It will be another lesson for me. Thanks for you time! |
Quote:
|
All times are GMT. The time now is 08:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|