vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest... (https://vborg.vbsupport.ru/showthread.php?t=195884)

Digital Jedi 02-17-2010 04:18 PM

Quote:

Originally Posted by MWRD (Post 1984144)
Recently i noticed that links the videos on you tube had changed format and embed method

so that any new link i put it from youtube to my forum don't work or convert .

I made a change in / Regular expression like this :

old one:

PHP Code:

[http://]*[a-z]*?[\.]?youtube\.[a-z]*?/watch\?v=([A-Z0-9._%-]*)[&\w;=\+_\-]* 

new one:

PHP Code:

[http://]*[a-z]*?[\.]?youtube\.[a-z]*?/watch\#v=([A-Z0-9._%-]*)[&\w;=\+_\-]* 

because the urls changed to :

http://www.youtube.com/watch#v=XXXXXXXXXXX

from:

http://www.youtube.com/watch?v=XXXXXXXXXXX

and its work fine now

Except for one important thing :

Video Title from youtube not work at all only youtube text title ?

can i find a help to make it work or there is an update for this mod?

thanks for any one help me

First off, please let me say that it's not necessary to send me PMs to check posts in my OWN thread. I check my own threads for new posts the as soon as I have the time for it.

As far as your problem is concerned, I don't see any changes at YouTube. I'm looking at it right now and they all seem the same. I clicked on the link with the pound symbol (#) that you posted, and they redirect to regular YouTube links.

If for some reason your users are getting links with the # symbol, then it's possible it's the Language or Location that your users are using. What Language and Location are you browsing YouTube in? I'm specifically referring to the settings at the very bottom of each YouTube page.

As far as the title's go, this is not a problem with AME. This has to do with the fact that the page is a redirect page. AME will only read target page, not the page it's redirecting you to, so all you're going to get is the website's title. There is no workaround for this.

YAHOME 02-18-2010 12:27 AM

Sorry for any disturbance i cause to you for my pm ... my users complain strongly for many days about that ...

Its obvious now that youtube change the way that users browsing from other countries like Arabic country

because its not redirect them to regular YouTube links ... all links now become with # symbol

Seems to be a problem with me my dear ... i forced to change the youtube code like i said before for that reason and it work fine for them now

but the my users from other English countries ?

Can you make change for my to make the youtube code read the link with (? - #) symbols to work with all ?

and regarding to the video title its supposed now when i change the code and become read video from youtube ... its supposed now to work and read video title now only give me YouTube - Broadcast Yourself without any video embed title... why cant get video title now ?

waiting you Digital Jedi :)

YAHOME 02-18-2010 01:59 AM

Okay now to solve this paradox i make two definition for youtube links

first one Unique Key called youtube1 that's i use in regular expression (#) symbol like this

PHP Code:

[http://[\w]+\.youtube\.[\w]+/watch\#v=([\w-]+)[\w&;=-]*[\#t=]*([\d]*)[&;10shdq=]* 


and the second one Unique Key called youtube that's i use in regular expression (?) symbol like this

PHP Code:

[http://[\w]+\.youtube\.[\w]+/watch\?v=([\w-]+)[\w&;=-]*[\#t=]*([\d]*)[&;10shdq=]* 

so that AME can now read from two different method at youtube links

but only one problem find that first one give me YouTube - Broadcast Yourself without any video embed title

the second looks great :)

Digital Jedi 02-18-2010 03:26 AM

Yes, that will work. However, you will not be able to get the video title with the # symbol. That URL is a redirect as far as AME is concerned, so it will only get the title of the redirect page.

You can have one definition to parse both URLs, if you want. Just change this to the Regular Expression:

Code:

http://[\w]+\.youtube\.[\w]+/watch\??\#?v=([\w-]+)[\w&;=-]*[\#t=]*([\d]*)[&;10shdq=]*

YAHOME 02-18-2010 04:04 AM

Thanks so much you provided a great service to me its work now both URLs you are the man :)

and thanks to clearly the video title issue...

sorry again for bother by pm.

with my best wishes

Mike08 02-18-2010 05:54 PM

Something was changed in goear.com and now all the goear's links autoplay it at the same time :eek:
Some help?

mertiliuss 02-19-2010 01:13 PM

You can create one to embed the page:
http://www.theync.com/



thanks!

antua al toro 02-19-2010 02:04 PM

strongly needed defenition for http://smotri.com
i want to broadcast in thread :)

Digital Jedi 02-19-2010 08:57 PM

Please add them to my list linked on the main post.

mertiliuss 02-24-2010 06:22 PM

Quote:

Originally Posted by Digital Jedi (Post 1986803)
Please add them to my list linked on the main post.

already ready


All times are GMT. The time now is 07:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02747 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete