Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Radio search issue
#1
Hello,

The radio search function delivers strange results or I miss something.

I run Moode 7.1.0 with the standard radio stations set.

Case 1
Radio manager : sort tag = name ; no grouping
Search : classical
Result : 11 stations (==> wich names contains "classical")

Case 2
Radio manager : sort tag = genre ; no grouping
Search : classical
Result : 38 stations (==> which genre contains "classical")

==> the search function seams to only look in is the sorting field but there is no obvious reminder for it -  it might be done somewhere maybe  in the title : Browse Radio stations by <genre>


Case 3
Radio manager : sort tag = genre ; group method sort by tag
Result : 41 stations in the "classical" group
 
==> this should be the number of stations which primary genre is "classical" if I well understand
(BTW is the "primary" attribute used elsewhere or just for grouping ?) 

Case 4
Same as case 3
Search classical
Result : 1 + 36 + 1 = 38 (three groups - the last one results from a missing space is the genre of WKCR but the first one is strangely unnamed ==>  a bug ?)


As an example of discrepancies I do not understand,
why does Ancien  FM, which primary genre is classical not appear under case 4 ?

Thank you for your help.

Philippe
Reply
#2
I'll investigate.

Missing space in the genre of WKCR is a bug.

The primary genre is considered to be the first genre in the list of genres for a station. There may be errors in the genre fields of some of the stations. I'll look into these.

Searches use "string contains <search string>" method.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Extracting the genre values from the db, sorting, and running 'uniq -c' to get a count of the unique values gets me

Code:
     1 "Alternative, Post-Rock, Post-Metal, Modern Classical, Experimental, Deep Indie"
    27 Classical
     2 "Classical, Baroque"
     1 "Classical, Contemporary"
     1 "Classical, Contemporary, Jazz, Folk"
     5 "Classical, Jazz, Classical"
     1 "Classical, Jazz, Classical, Folk, World Music"
     1 "Classical, Jazz, Classical, Rock, World Music"
     2 "Classical, Jazz, Classical, World Music"
     1 "Classical, Mediaeval, Renaissance"
     1 "Classical, Music, Culture"
     1 "Classical, News, Classical, Requests"
     1 "Jazz,Classical"

Note that OFFLINE stations such as the Audiophile stations are included.

I'm not sure why a value is repeated in the genre list for some stations, such as "Classical, Jazz, Classical".

There's another interesting quirk in the function. When genre is the sort tag (Such as OP's Case 2), then if there is only a primary genre value for a station it is displayed but if there is a list of genre values, the primary value is not displayed. First example, 6forty Radio has genre entries "Alternative, Post-Rock, Post-Metal, Modern Classical, Experimental, Deep Indie" but only "Post-Rock, Post-Metal, Modern Classical, Experimental, Deep Indie" is displayed.

As an aside, the WKCR entry is the only one of the 224 entries I found with the missing space after comma.

Regards,
Kent
Reply


Forum Jump: