Skip to content

Add option to specify stream formats when searching, search all forma…#52

Open
olszewst wants to merge 1 commit into
kingosticks:masterfrom
olszewst:master
Open

Add option to specify stream formats when searching, search all forma…#52
olszewst wants to merge 1 commit into
kingosticks:masterfrom
olszewst:master

Conversation

@olszewst

Copy link
Copy Markdown

TuneIn search API accepts an argument called formats where caller can specify what stream formats it supports. If a stream is not available in any of the requested formats, API call only does not return such stream (the response only contains a placeholder that says "Unsupported stream format").

This PR adds an option to explicitly specify what formats should be included in the response. It also changes the default behavior: queries will now by default request all formats (formats=*) instead of leaving this option blank that yields only streams in formats that TuneIn picked as default.

I believe this PR should fix #50, but I didn't verify this. It did help me another stream that I had exactly the same problem with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buddha Hits 'not supported'

1 participant