Code Monkey home page Code Monkey logo

Comments (6)

PrestonN avatar PrestonN commented on May 8, 2024

Yep. This is definitely on the to-do list, but thanks for putting it here so I can track it better.

Something to keep in mind is that the Most Popular section isn't the same as YouTube's "Trending" section. Whatever ends up on that page will always be different to what FreeTube shows.

The way that the Most Popular section works is that it grabs the most liked videos out of the list of videos that were uploaded in the past 2 days. This is similar to how SkyTube does their Most Popular section and I used that while I made the feature. The result is that both apps should show similar results for that section. I don't believe region determines what gets shown, but I'll play around with it and see if it changes.

As far as I know, the YouTube API has no way of grabbing what's on the "Trending" section, but I could be wrong. I'll definitely play around with region selection though, as I've seen this requested a couple of times already.

from freetube.

Larivact avatar Larivact commented on May 8, 2024

As far as I know, the YouTube API has no way of grabbing what's on the "Trending" section

https://stackoverflow.com/questions/30475309/get-youtube-trends-v3-country-wise-in-json
https://developers.google.com/youtube/v3/docs/videos/list#chart

from freetube.

aproposnix avatar aproposnix commented on May 8, 2024

I know that Minitube (another YouTube viewer) has this functionality.,, so I assume there is a way

I believe you could use the google top playlists - Not the trending.

https://www.youtube.com/playlist?list=PLrEnWoR732-BHrPp_Pm8_VleD68f9s14-

Here's mintube and the Google top playlist (there are other playlists of course) for comparison.

selection_009

selection_008

EDIT: This is part of #2

from freetube.

ivanhercaz avatar ivanhercaz commented on May 8, 2024

Although NewPipe is an Android app and taking in account that I don't know exactly how this feature should be developed, I would like to suggest you, @PrestonN, to take a look a how it avoid the restrictions by country.

Would be easier to develop a system that avoid this restriction or a system to select the country from where "you watch" the video? I understand that in the first case, what the system should do is: if in the country of origin is blocked, then set another country until the video will be available.

But, as I told you, I can think the theory but I don't know how to apply it :(

from freetube.

omarroth avatar omarroth commented on May 8, 2024

The method you described for bypassing region blocks is actually how Invidious works behind the scenes. It cycles through a list of proxies until it finds one with correct info.

There are two issues currently with this approach:

  • Quickly determining where a video is unblocked, since YouTube will not provide a list of allowed regions unless you are requesting from one where a video is unblocked
  • Finding a list of proxies that consistently work in various regions

from freetube.

PrestonN avatar PrestonN commented on May 8, 2024

This has been implemented. The user will be able to select their preferred region for viewing the Trending section. Expect this to be included with the next release.

from freetube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.