-
Notifications
You must be signed in to change notification settings - Fork 14
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
Added filter to limit the search results to stations or shows #34
Conversation
Thanks for taking a look. Do all requests support filtering? |
It would also be quite nice if we could somehow extend |
Yes, i can also limit a browse request only to shows or stations. http://opml.radiotime.com/Browse.ashx?id=c57941 The 'filter' parameter affect the behavior for search and browse, but I have only considered him for the search. |
…ng ones are used." Make global names defined in translator.py available in tunein.py is known as a "cyclical dependency" and is a terrible idea. We should put global names that need to be available to both modules in a third module. This reverts commit e8d386e.
did you notice? |
Having finally gotten around to trying this out I see this filtering applied to everything breaks the results in some cases. For example:
Returns plenty of results from TuneIn (http://opml.radiotime.com/Browse.ashx?render=json&id=r102038&filter=s) but Mopidy-Tunein doesn't show anything. Contrast that with London (http://opml.radiotime.com/Browse.ashx?render=json&id=r102038&filter=s) which does work and you can see the difference in the results format and why |
The pull request did not change the browser function or I can reproduce the described issue without applying this filtering to browse... Why there is no open issue about this? |
Correct, you didn't change flatten, that's not what I said. But the way it's implemented it adds the filter param to every request. So, yes, it did change the browse results. I'll have a go at fixing it tomorrow. |
…ition to _tunein to check if search variant is used, if so we add the filter.
With the last commit now both Music> 80's and Liverpool show the corresponding results. |
If we only want to apply the filter for searching, it should just be added to the I'll have another round of testing this weekend just to make sure there are no search queries that end up with the same issue. If memory serves the search results are always in the same flat format so it should be OK. Having this filter feature available for browsing would be nice to get working but we can sort that out separately. I like this feature, I personally don't want the podcasts in my results - thanks! |
Merged in 514ef19 with some adjustments. Thanks. |
Hello, this is my proposition for #1
Let me know what you think about it.