DEV Community

Cover image for Rubio-Radio Currently Playing Song & Full-Text Search
Andy Maleh
Andy Maleh

Posted on

Rubio-Radio Currently Playing Song & Full-Text Search

Another GitHub Pull Request for Rubio-Radio (open-source Internet radio app built with Ruby) got accepted and merged, which focused on displaying the currently playing song/program, loading all available radio stations (instead of a pre-defined limit), and enhanced full-text-search support including column-specific queries. The changes have been released in rubio-radio gem version 0.0.6. In fact, the enhanced full-text-search support is included in the latest version of Glimmer DSL for LibUI (Ruby Desktop Development GUI Library used to build Rubio-Radio) as part of the refined_table custom control for use in any projects, so software engineers get that feature for free now.

Rubio-Radio Screenshot showing currently playing song.

mac screenshot

Ruby Gem:

gem install rubio-radio
Enter fullscreen mode Exit fullscreen mode

Usage

Run with this command:

rubio
Enter fullscreen mode Exit fullscreen mode

All Radio Browser stations are displayed by default. But, you can customize the count with --count COUNT (note that currently, there are only about 33,000 Radio Browser stations total). Setting the count to -1 will fetch all stations.

Filtering

The filter field does AND-based filtering when you enter multiple words separated by spaces:

jazz smooth

Also, the filter field supports exact term filtering if you enter multiple words surrounded by double-quotes.

"bossa nova"

Last but not least, the filter field supports column-specific queries by including a full column name or the first few letters, followed by colon (:), followed by a single word or double-quoted multiple words for exact term matching against the column:

name:talk language:eng

or just:

n:talk l:eng

advanced filtering mac screenshot

This advanced example matches the word FM against the name column, and language bahasa indonesia against the language column.

n:FM l:"bahasa indonesia"

Finally, you can mix different types of filters:

brasil "bossa jazz" l:brazilian l:portuguese

That's all folks!

Top comments (0)