TubePress: WordPress Plugin for YouTube Download & Import Videos

Sep
29
Import By ID fixed
Posted by Mario Mansour in TubePress

While most people are using TubePress.NET plugin for mass importing youtube videos to their wordpress blog using tags, others prefer to have more control over the import situation and to actually ask for the video by ID. This feature was introduced in earlier versions of this plugin, however during the recent rewrite procedure, I assumed that youtube always returns the ID of the queried video in the XML response. However it turned out after I checked the youtube API docs this morning that for queries by ID, youtube doesn’t return the ID.
Obviously, because the user already knows it… I would like to thank Mark Robertson for pointing out this problem.

I suggest that those who wish to use this function, please update your plugin. Download available as usual from the download button at your right in this website and from the WordPress plugin directory as well.
Another tip of the day: Never ASSUME anything as my old university professor used to say: “When you ASSUME, you make and ASS out of U and ME” and always check the documentation.

7 Responses to “Import By ID fixed”

  1. Germain Bracamontes Says:

    Hi man. Great job on the plugin! Question: are you referring to this problem?: Warning: Invalid argument supplied for foreach() in /home/content/e/o/o/eoomee/html/wp-content/plugins/tubepress.net/tubepress.php on line 441

    I get it when trying to import by ID. Also… how do I create thumbs with your plugin? Do changes apply to videos posted prior plugin? (doesnt seem to do it) Thanks a LOT!!!

  2. Ron Madriz Says:

    So i’ve downloaded your plug in and have installed on 2.6.2. When importing by ID the problem is still occuring, then looking at the plug ins page I am prompted to upgrade to a newer version of the plug in. Both do not work for me. Is there any help i can receive?

    Oh and here is the line it is referring to, that is on the updated version:

    foreach ($xml->video_list->video as $video) {…

  3. Miguel Says:

    Warning: Invalid argument supplied for foreach() in /home/username/public_html/wp-content/plugins/tubepress.net/tubepress.php on line 441

    Look I just wanted to say that you made a great plugin, it is on of the best and thank you so much for taking your time doing this. The only problem I got is the one above when trying to add by ID.

    Thank You

  4. James Says:

    I am using WordPress 2.7 and can not add any videos via any method I keep getting this message. I get the same message on multiple blogs! Any help on this fix will be appreciated!

    Warning: simplexml_load_file(http://www.youtube.com/api2_rest?method=youtube.videos.list_by_user&dev_id=wL9DDl1Id6Y&user=playboy&) [function.simplexml-load-file]: failed to open stream: Connection timed out in /home/flasgcom/public_html/voltube.com/wp-content/plugins/tubepress.net/tubepress.php on line 384

  5. Tobias Says:

    Warning: Invalid argument supplied for foreach() in /home/r3krorin/public_html/sverige1.info/wp-content/plugins/tubepress.net/tubepress.php on line 441

    What can I do?

  6. Muhammad Ahmed Says:

    I am also getting this error

    Warning: Invalid argument supplied for foreach() in /home/r3krorin/public_html/sverige1.info/wp-content/plugins/tubepress.net/tubepress.php on line 441

  7. How to Get Six Pack Fast Says:

    If you ever want to hear a reader’s feedback :) , I rate this article for four from five. Decent info, but I have to go to that damn msn to find the missed bits. Thank you, anyway!

Leave a Reply

You must be logged in to post a comment.