Most Viewed Deprecated - Take 2
Posted 10 August 2012 - 09:24 PM
The most_viewed feed of the YT API has been deprecated as of July 27, 2012 and replaced with most_popular YT stated that queries to the old request will return blank feeds or mashes of videos that do not rep what the actual charts are. I can vouch that this is now happening. I am sure this will be revised in tubepress at some time but is there an alternate shortcode or workaround until that time?
Username - gfeintubepress
Posted 12 August 2012 - 05:02 PM
Thank you for the heads up. I also noticed that YouTube went on to say that
[the] most_viewed feed will now return the same content as the most_popular feed
So for the time being, your feeds using "most_viewed" should continue to work as expected. I've filed a bug report and put this on the roadmap for the next release.
Please let us know if you experience any trouble in the interim. Thanks again!
Posted 12 August 2012 - 07:51 PM
As per Youtube - July 23 revision Note:
Queries for the most_viewed feed may return an empty feed, and if the API does return a feed, the entries may not actually represent the most frequently viewed videos.
Good news is that the time parameter has not changed and most_popular supports this so I am hopeful its an easy fix for 2.4.4
I will be eager to get that update.... nudge nudge. :)
Posted 14 August 2012 - 09:49 AM
most_viewed feed will now return the same content as the most_popular feed
Regardless, here's how you can make the change in your code now....
- Open up tubepress/sys/classes/org/tubepress/impl/feed/urlbuilding/YouTubeUrlBuilderCommand.class.php with your favorite text editor
- Change line 74 from
$url = 'standardfeeds/most_viewed?time=' . $execContext->get(org_tubepress_api_const_options_names_GallerySource::YOUTUBE_MOST_VIEWED_VALUE);to
$url = 'standardfeeds/most_popular?time=' . $execContext->get(org_tubepress_api_const_options_names_GallerySource::YOUTUBE_MOST_VIEWED_VALUE);
Posted 17 August 2012 - 03:32 PM
Posted 24 August 2012 - 06:44 PM
have the short codes for most_viewedValue changed to to most_popularValue = today, this_week, this_month, all_time
Posted 24 August 2012 - 10:26 PM
Also noticed the orderBy="viewCount" is not sorting correctly in my tests.
Note: It seems even the YT Charts pages and resulting feeds are not really working that well either. If you choose Most Viewed/All time you do not get anything close to what they showed prior to their making the changes they did to the API.
Posted 26 August 2012 - 02:34 PM
In all cases the view count sorting in the generated gallery is not functioning.
This could be a Youtube issue as well. The All time chart has been blank for the last 48 hours and the other charts have not been very consistent as well.
Posted 28 August 2012 - 04:59 PM
I will say, the most_viewed example in the feature showcase is showing the same results I am getting so its happening here too.
Posted 30 August 2012 - 08:29 PM
Youtube charts (youtube.com/charts) display the current videos for most viewed in each respected time frame. However the most_popular feed is different and the time parameters are not functioning yet there. Its very curious that there are no developer posts about this. Whatever algorithm they are using, its not reflective of the most viewed any longer.
Even Youtube's own channel devoted to the new "most popular" feed is returning the identical results that tubepress prints to the browser.
sigh.... Eric as always, thank you for your quick replies and input. Just gotta wait and see what Youtube does.
Posted 31 August 2012 - 08:24 PM