Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Ability to select region #14

Closed
aproposnix opened this issue Mar 5, 2018 · 6 comments
Closed

Enhancement: Ability to select region #14

aproposnix opened this issue Mar 5, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@aproposnix
Copy link

aproposnix commented Mar 5, 2018

Currently there's no way to select the region. This results in the "Most Popular" category to not be very relevant (esp., language).

I'm sure this is already on your to-do list but I'm putting here because it's kind of important.

P.S. Can you tell me which region the application is coded for by default? I've looked at the Most Popular list and compared it to YouTube's popular category and it totally doesn't match (tried multiple regions).

@PrestonN PrestonN added the enhancement New feature or request label Mar 6, 2018
@PrestonN
Copy link
Member

PrestonN commented Mar 6, 2018

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.

@Larivact
Copy link

Larivact commented Mar 7, 2018

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

@aproposnix
Copy link
Author

aproposnix commented Mar 9, 2018

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

@ivanhercaz
Copy link

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 :(

@omarroth
Copy link

omarroth commented Feb 7, 2019

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

@PrestonN
Copy link
Member

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.

weblate pushed a commit to weblate/FreeTube that referenced this issue Aug 18, 2020
Added yt-xml2vtt and did the corresponding implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants