Results 1 to 2 of 2

Thread: youtube import

  1. #1
    Join Date
    Feb 2012
    Posts
    22

    Default youtube import

    hi guys,

    i love the feature to search for videos containing a keyword and then you can bulk import them to a user.,.

    my question though is ..

    i have to had a company sign up and wish to have all there videos imported from there youtube account to there account on my site.. is there a way to just get all the videos from there account? i tried to search my youtube acount name and it still fetched 100's of results.. these guys have about 250 videos so would be a long task doing one by one ..


    cheers guys your service is amazing :)

    shane

  2. #2

    Default

    Hi,

    To bulk import a list of videos uploaded by a particular user in Youtube, do the following.

    Open vShare/admin/import_bulk.php file and find
    Code:
    $yt = new Zend_Gdata_YouTube();
    $query = $yt->newVideoQuery();
    $query->setQuery($search_string);
    $query->setStartIndex($start);
    $query->setMaxResults($admin_listing_per_page);
    $queryUrl = $query->queryUrl . '&fmt=sbv';
    
    $feed = $yt->getVideoFeed($queryUrl);
    then replace it with
    Code:
    $yt = new Zend_Gdata_YouTube();
    $feed = $yt->getUserUploads('YOUTUBE_USER_NAME');
    YOUTUBE_USER_NAME must be replaced with username in Youtube.
    After importing videos, you must revert the changes for default functioning of Bulk Import.

    Thanks,

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •