• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Remove duplicate SomaFM entries

    Scheduled Pinned Locked Moved
    Feature Suggestions
    1
    2
    123
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      arno
      last edited by

      We don't need an mp3 and aac option listed for every station, just pick the most FOSS one and let it be

      A 1 Reply Last reply Reply Quote 0
      • A
        arno @arno
        last edited by arno

        @arno I fixed this by changing the area around line 113 in somafmservice.cpp

        ...
              RadioChannel channel;
              QString quality = obj_playlist["quality"].toString();
              QString format = obj_playlist["format"].toString();
        
              if ((quality != "highest") || (format != "aac")) continue;
              channel.source = source_;
              channel.name = name;
        ...
        

        And then refreshing the channel list in Strawberry

        I also removed the lines

              if (obj_playlist.contains("format")) {
                channel.name.append(" " + obj_playlist["format"].toString().toUpper());
              }
        

        Unfortunately the github version doesn't respect the "use system icons" rule so now I'm recompiling from the Debian source version

        I posted a patch file here
        https://github.com/orgs/strawberrymusicplayer/discussions/1419#discussioncomment-9065392

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors