Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Most Viewed Deprecated - Take 2


  • Please log in to reply
11 replies to this topic

#1 Anonymous

Anonymous

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

Posted 10 August 2012 - 09:24 PM

Duplicate post, FYI I can log in but when hit new topic it goes to the dashboard, tried entering my user name in my first post but it came back as user already in use... So it went in as guest with my user name written in the post... and true to your word it was not answered. You're a decent guy giving support Friday Night at 10pm.

Take 2

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

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 12 August 2012 - 05:02 PM

Hi,

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!

#3 Anonymous

Anonymous

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

Posted 12 August 2012 - 07:51 PM

Appreciate your acknowledgment... For the record, its not returning the same feed. On my site the "today" and "week" feeds are the same and consist of random videos from both feeds. Likewise "Month" and "Alltime" are identical with similar random videos.

As per Youtube - July 23 revision Note:
https://developers.g.../2...ease_notes

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. :)

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 14 August 2012 - 09:49 AM

On that same page under the Aug 10 notes it states that

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);
That should be it. Give it a whirl and let us know how it works? Thanks again!

#5 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 17 August 2012 - 03:32 PM

Did you have a chance to test this? Just checking in. I'll be releasing a new version of TubePress in the next day or so and this feels like low-hanging fruit that I could include in the release.

Thanks!

#6 Anonymous

Anonymous

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

Posted 24 August 2012 - 06:44 PM

Thank you so much for the low hanging fruit. I'll thoroughly test this and report back. Just one item.

have the short codes for most_viewedValue changed to to most_popularValue = today, this_week, this_month, all_time

#7 Anonymous

Anonymous

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

Posted 24 August 2012 - 10:26 PM

I tested 2.4.4 and not having much luck. All time values return the same set of videos. Can you verify if the short codes have changed in any way and what they are?

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.

#8 Anonymous

Anonymous

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

Posted 26 August 2012 - 02:34 PM

Did many tests, tried using the YouTubeUrlBuilderCommand.class.php line 74 as both most_popular and most_viewed YT Parameters. Both return the identical feeds for today/week/month and they do not match what is on the charts pages or come close. All Time is returning correctly under both parameters.

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.

#9 Anonymous

Anonymous

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

Posted 28 August 2012 - 04:59 PM

downgraded to 2.4.3 and still same results.

I will say, the most_viewed example in the feature showcase is showing the same results I am getting so its happening here too.

#10 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 29 August 2012 - 11:04 PM

My guess is that YouTube is messing around with their API. However I searched in the YouTube API forum but didn't see any discussion of that.

I would suggest posting there or filing a bug report with YouTube. Please let me know if I can help in some way.

#11 Anonymous

Anonymous

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

Posted 30 August 2012 - 08:29 PM

Well, its not tubepress... Seems a few sites that also display the most_viewed : today/week/month feeds using custom code/RSS feed data to fetch the content are returning the same results I am getting.

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.
http://www.youtube.c...k91tndwg/videos

sigh.... Eric as always, thank you for your quick replies and input. Just gotta wait and see what Youtube does.

#12 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 31 August 2012 - 08:24 PM

If you wouldn't mind, please post back here if/when you get any leads on this. I'm definitely curious to fix it but just don't have the man hours to do so!

Thank you..