Add content language settings
Official Instance
- [X] The bug is reproducable on the official hosted instance or is API related.
Describe the bug
NewPipe supports content language for better results. For example, search isn’t great compared to newpipe because it’s not customized via language. (I’m not sure it’s useful somewhere else than search, probably recommendations?)
If you search for "Tour de France" on Piped, you’ll only get english videos. If you put french content language in newpipe, you’ll mostly get videos in french.
To Reproduce
search for "tour de france"
Expected behavior
I put french in settings -> I get results for videos in french about tour de france I put english -> english videos
Logs/Errors
.
Browser, and OS with Version.
No response
Additional context
You have to use "localization" in newpipe extractor (named content language in newpipe), which is different from content country. Eg. content country is useful for trendings, localization / content language is useful for search.
On Piped, it’s en (US). https://github.com/TeamPiped/Piped-Backend/blob/f59fe29d0d7c76188b77a5937330c91fbefde024/src/main/java/me/kavin/piped/Main.java#L27
I think you have to use forceLocalization() with every request as the backend is shared with different people who will use different languages
I believe NewPipeExtractor forces English regardless for YouTube, since that's necessary for the timeago parsing.