Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jemsz

    (@jemsz)

    Okay so i use this plugin under the impression i can use 1,000 videos per channel…. How do i increase the limit of posts being retrieved from Youtube RSS Feeds???

    Ive read elsewere on the net that:
    You need to define the max-results in your request, only 25 are returned by default.

    http://code.google.com/apis/youtube/2.0/reference.html#max-resultssp

    However i have no idea how to implement this… anyone help please

    Thread Starter jemsz

    (@jemsz)

    Solved:
    Parse.php
    Change line 392
    To:
    $tern_wp_youtube_feed = 'http://gdata.youtube.com/feeds/api/playlists/'.$v.'?max-results=50&start-index=51&v=2';

    Does this look safe?
    Seems to work fine with importing over 100 atm

    I’m having this problem as well. It doesn’t seem to import any more videos when your playlist has over 25 videos.

    I added the code you posted above, but it still doesn’t work. I get this message:

    Total Videos Imported: 0

    Attempting to download videos 1 through 50 from playlist: “Test”

    Feed URL for this query: http://gdata.youtube.com/feeds/api/playlists/PLMkxZCbGazrE8BUjViVeDZRmE6cRVsLKf?max-results=50&start-index=51&v=2

    Any help would be appreciated. This plugin is vital for my website, and limiting to only 25 videos renders the plugin useless.

    Thanks,

    Thread Starter jemsz

    (@jemsz)

    max-results=50&start-index=51&v=2′;

    Try changing Index 51 to just 1

    Thread Starter jemsz

    (@jemsz)

    Max results = How many playlist / favorite videos will be returned
    Index = Were the videos import will begin, for example if you want video 10 on wards change index to 11. If you want to import over 50 videos you need to start the index from 51.

    Take note line 392 for me was the playlist line, just above it was the Channel line.

    Following is the channel line

    if($t == 'channel') {
    		$tern_wp_youtube_feed = 'http://gdata.youtube.com/feeds/api/users/'.$v.'/uploads?orderby=published&max-results='.$z.'&start-index='.$i;
    	}

    Following is playlist line

    elseif($t == 'playlist') {
    		$tern_wp_youtube_feed = 'http://gdata.youtube.com/feeds/api/playlists/'.$v.'?v=2';
    	}

    There is one big problem which i think can not be resolved.

    Imagine you have a playlist with lets say 58 videos and this playlist is growing.
    The maximum results which can be shown are 50. More is not possible!
    So its impossible to import more than 50 videos of one playlist. And this is just awfull.
    I love this plugin and my website really relies on it, but I need to import more than 50 videos of one playlist. But it’s not possible.

    It also seems that when the limit of 50 is reached, the plugin stops to auto import any other videos.

    Honestly I think its a problem of the youtube API … so we cant do anything 🙁

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘25 Videos max imported?’ is closed to new replies.