|
All forum posts are answered by the Flashloaded Support Technicians. Posts are usually answered within 1 business day - All forum posts/threads must first be approved by the moderator before they appear in the live forum. - If you need to upload a file, please use the attachment feature. These files are only visible to you and the members of the Flashloaded support team so your files and information will remain safe and hidden from others. In order to upload an attachment, you must be the owner of the thread. |
|
#1
|
|||
|
|||
|
Using RegExp in getVideoId.php
For some YouTube videos, the getVideoId.php doesnt retrieve the video_id & tag_t values.
For example http://www.youtube.com/watch?v=AIzbwV7on6Q Code:
XML Parsing Error: not well-formed Location: getVideoId.php?method=videoId&noCache=0%2E6937495740130544&url=http%3A%2F%2Fwww%2Eyoutube%2Ecom%2Fwatch%3Fv%3DAIzbwV7on6Q Line Number 3, Column 91: var additionalStatsHonorsUrl = '/watch_ajax?v=AIzbwV7on6Q&action_get_statistics_and_data=1&l=EN'; --------------------------------------------------------------------------------------------------------^ PHP Code:
|
|
#2
|
|||
|
|||
|
Re: Using RegExp in getVideoId.php
Thank you for this new information. We will keep this in mind and we are sure other users will find this information valuable.
Thanks. |
|
#3
|
|||
|
|||
|
Re: Using RegExp in getVideoId.php
We've just updated the php version of the proxy file with this code in case other users encounter the same problem. Thanks again for posting this.
|
|
#4
|
|||
|
|||
|
Re: Using RegExp in getVideoId.php
If json is enabled (default on PHP 5.2.0 and above), its best to use json_decode to decode the JavaScript variables.
PHP Code:
|
|
#5
|
|||
|
|||
|
Re: Using RegExp in getVideoId.php
Thanks so much for this information and for suggesting this change. We've applied it to the php proxy file. We really appreciate your input on this
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|