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

Browsing new stations from within pyradio #80

Closed
fn-ix opened this issue May 29, 2019 · 7 comments
Closed

Browsing new stations from within pyradio #80

fn-ix opened this issue May 29, 2019 · 7 comments
Labels
enhancement Enhancements and feature requests

Comments

@fn-ix
Copy link

fn-ix commented May 29, 2019

Hi!

It would be really nice if it was possible to explore new radio stations from within pyradio itself, so that one doesn't have to go hunting on the web separately for them. I could recommend radio-browser.info, which is a large community database of internet radio streams that also has an API that should make it possible to integrate it with pyradio; other apps, such as Gradio, also use it.

I hope this can be taken under consideration, although it would be a big undertaking! :)

@s-n-g
Copy link
Collaborator

s-n-g commented May 30, 2019

Hi @HFel

Thank you for your suggestion!
I was thinking of implementing something like that, maybe something opml related.
But this is for the future... So stay tuned
S.

@dimyself
Copy link

I like this idea as well...similar to how curseradio has stations implemented would be great! In fact it's the reason I still use curseradio over pyradio. It uses this URL to import stations: http://opml.radiotime.com/

Thanks!

@s-n-g
Copy link
Collaborator

s-n-g commented Nov 23, 2019

@dimyself
I have already started working on integrating http://www.radio-browser.info/
So, as I've told to @HFel , stay tuned...

@dimyself
Copy link

@s-n-g thanks man! I was wondering if going through radio-browser.info would have a similar interface to browse through different genres (not just tags)? For instance if I go through opml.radiotime.com in this category: http://opml.radiotime.com/Browse.ashx?c=music ... I can then drill down into a specific category to see for example the dance/electronic category: http://opml.radiotime.com/Browse.ashx?id=c57941 which will then have sub categories such as chill, dubstep, drum & bass, House, Trance, most popular (for this particular genre / sub-genre), etc... or also the ability to brose genre / sub-genre (local) stations and shows.

I only bring all this up, because if I go to radio-browser.info, I don't see this kind of granularity? The only thing I see that kind of matches categories is "tags"? Maybe I just don't see all the categories/sections that are available on the site?

Anyway, its worth looking into maybe just to see which might have superior browsing... If you want to get an idea of how the browsing works in terminal/ncurses, you can check out curseradio which already has this url implemented for browsing and drilling down into the opml categories. It seems to have just about everything, so much stuff!

I apologize if I missed something in the radio-browser site that allows for better browsing down more granular, or if you have some kind of plan to categorize all the tags for example.

Is there a way you plan for pyradio to be able to drill down using radio-browser? For instance, if I click on the 'talk' tag on radio-browser, it just shows ALL talk tag stations (which is enormous). I don't see a way to see: 'Talk' AND 'Religion' (to further drill down to only show those partiular stations.

I think it will still be very hard to find specific sub-genre stations a person is looking for with just specific tags? ...Unless I'm missing something on the radio-browser.info site

Anyway, idk how far you've gotten using that site, but its worth looking into opml radiotime because of the way the categories / sub-categories are setup.

Thanks!

@s-n-g
Copy link
Collaborator

s-n-g commented Nov 24, 2019

Hi @dimyself

No, I don't think an interface such as this is exactly possible with http://www.radio-browser.info/

The closest to genre is a tag, but then again the categorization is done on station level; there is not a category provided by the server per se.

I have managed to get this though (on a terminal)...

curl --header "Content-Type: application/json" \
  --request POST \
--data '{"tagList":"talk,religion"}' \
http://www.radio-browser.info/webservice/json/stations/search

That's searching for tags talk and religion.
If you run it through json_reformat -su you can get the name, tag, url etc...

curl --header "Content-Type: application/json" \
  --request POST \
--data '{"tagList":"talk,religion"}' \
http://www.radio-browser.info/webservice/json/stations/search | json_reformat -su | grep name

Doing that within pyradio is a whole different thing though.
So I'm just working on the interface right now; this is where i am right now: station by top votes...

https://imagebin.ca/v/530bQ9hXJX6R

My next objective is to create a search interface, but it takes time...

Now, regarding http://opml.radiotime.com/ , it may well be the next service to integrate

Regards,
Spiros

@s-n-g s-n-g added the enhancement Enhancements and feature requests label Dec 30, 2019
@amano-kenji
Copy link

amano-kenji commented Apr 6, 2024

pyradio already supports radiobrowser pagination with search interface. Can this issue be closed?

@s-n-g
Copy link
Collaborator

s-n-g commented Apr 6, 2024

Closing!

@s-n-g s-n-g closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancements and feature requests
Projects
None yet
Development

No branches or pull requests

4 participants