-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Filter out doesn't work anymore #151
Comments
Yeah, I've noticed this as well and I've already investigated this. It's Twitch which is incorrectly returning all items when requesting the stream list. The GUI is working properly though and is using the right query parameters. To fix this, just refresh the page by clicking the button at the top or by pressing F5 or CTRL+R... |
ok thank you |
Reopening this... |
Hello, i finally understand why it doesn't work anymore yep they change api.twitch.tv to streams.twitch.tv |
i think they change because streams isn't in secure http |
Thanks, I'll see what I can do when I'll get the time.
I doubt that they are changing their API endpoints. For me this looks like an alternative that is still working, whereas the main one is not anymore.
If you remove the |
So I found the time to track down the source of this issue:
In a post above I said that some HTTP requests will return a correct and some will return an incorrect list of streams and that this must have something to do with their servers. This was the case a couple of days ago when you were still able to receive correct results, but now I'm unable to receive those anymore. So I guess they've disabled this feature completely. Now to the issue... Compare these three URLs:
The first one with a single See LanguageFilterMixin and ChannelsRoute The GUI will either ignore the |
Hi, I am using version 0.11.2 on Windows 7. When I select 'American' + 'French' in the language settings and select the 'filter out' option, the top channels still contain channels with other languages. Same if I restart the application or if I force a refresh of the 'page'. Because the 'extra' channels have a correct flag as well as a correct tooltip (ex: 'This channel is in chinese'), I believe it's possible to filter them out since my settings don't include 'chinese' in this example ? |
See my posts above, this feature is still broken and it has also been included in the changelogs of the last couple of releases. Twitch has removed the support for filtering multiple languages from their API, there is nothing I can do about to fix this issue. Some language specifications have also been removed, like
No. See #113 (comment) and #133 |
Why dont you filter them out locally? Like for(JSON.stream in streams){
if (this[language] == settings.filterlanguage) { showInTheGUI(); }
}
? :D |
Yeah that's what I thought also. But it seems it's maybe not possible ?
|
Removing items on the client side is a very stupid idea. Let me explain this again in a more detailed way: Do you still think filtering on the client side is a good idea? Filtering has to be done on the server side by adding parameters to the API request, otherwise it's not going to work. |
Hello, Let me re-up that. how can we do that :
With this technique we can have only one language selected so we can re-enable the filter out option Are you agree? |
No, Twitch has disabled this feature in their API.
This would require a change here, so that a single string is being returned instead of an array containing one string if the user has selected just a single language. As I've already said, filtering a single language is a terrible idea. I don't want to encourage users to decide between stream languages. It would work for monolingual people, but for multilingual people it would not. And selecting multiple languages would still be broken and therefore confusing. |
Added single language filtering support and a message to the settings describing the limitation. |
thank you |
great ! thank you ! |
Thanks m8 👍 |
Closing this now... |
Using a comma separated broadcaster_language list does now work. Good job, Twitch 👍
Selecting multiple languages is now supported again... |
Hi,
i don't know since when but the "filter out" option doesn't work anymore. I have all the results.
thank you
The text was updated successfully, but these errors were encountered: