Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 42 12311 ... LastLast
Results 1 to 10 of 412
  1. #1
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,458

    Announce: Radio Now Playing plugin

    Provides extended track and/or programme information for a variety of radio stations - along with a menu to choose the station to play.

    From the Settings you can disable the handling of individual broadcasters.

    Current set of broadcasters includes:
    • Juke Radio - adds cover art, year and album (artist and track title available in LMS without the plugin)
    • nova.fr - adds cover art, artist, track and programme name - stations Radio Nova (including Bordeaux and Lyon), Nouvo, Danse, La Nuit, Classics.
      However, little information available for live shows on Radio Nova/Bordeaux/Lyon
    • klassikradio.de - Note - this broadcaster is not limited to classical music. There are also some jazz, rock and world music stations. - CoverSearch*
    • Českř rozhlas - adds cover art, artist, title, programme name and synopsis.
      A Czech broadcaster with some flac streams - with multiple stations supported - including Jazz, Classical (D-dur), Arts oriented talk (in Czech) (Vltava) plus local stations
    • Naim - add artist and track - CoverSearch*
      Naim provide a small number of flac streams and have equivalent available as MP3 and AAC.
      The non-flac streams have artist metadata included - but the flac does not. So the plugin adds in the missing data.
    • Linn Radio - add album and low-res cover art
    • RadioBlues Flac - CoverSearch*
    • Mother Earth Radio (base plus Klassik and Instrumental) - artist, title, album, cover art, duration
    • Caroline Flashback - artist, title - CoverSearch*
    • Radio Espace (Lyon, France) and the related AllZIC Radio plus JazzRadio.fr, Alpes1, M Radio, Generations, La Radio Plus, , La Radio Plus Alpes Du Sud, ODS, RVA, Virage, Durance (although they have a problem with their data at present), Nice
    • Somehow Jazz - artist and title - hi-res of mainly 70s jazz - CoverSearch*
    • Frequence3 (French FM station with a number of additional web-only themed stations) - artist, title - CoverSearch*
    • ZOG ( https://zog.net.au ) - artist, title, album, year - CoverSearch*
    • Europa Radio Jazz - artist, title, album, cover art, duration - CoverSearch*
    • St. Louis Classic Rock - artist, title, cover art, year
    • Supla Finland - artist, title, programme name - migration from previous dedicated plugin - CoverSearch*
    • RTE (Ireland) - programme name and image - migration from previous dedicated plugin
    • Radio Swiss - Classic, Jazz, Pop - artist, title, album, cover art, duration
    • Jazz24.org - artist, title, album, cover art
    • Dandelion Radio - without the plugin this works well and provides artist, title and cover art. However, the programme name is shown in front of the artist name. The plugin reformats things so that the programme name is only shown during the links. Declared interest ... I am involved with this station and this reformatting requirement has been nagging at me for years ... and is one of the reasons why I wrote this plugin ... and it would have only been 1 line of code if it was in core LMS!
    • FSK - Programme name only - added because of parochial interest.
    • Offshore Music Radio - artist, title - CoverSearch*
    • PiratenRadio.ch - artist, title - CoverSearch*
    • JB Radio2 - artist, title, cover art, album, year, duration - and includes this for the flac stream
    • KCRW (migrated from earlier stand-along plugin), KUTX and KNKX (USA)
    • SpoonRadio (Switzerland)
    • CherieFM (France)
    • OUIfm (France)
    • Tropiques FM (France) - although they have problems with song metadata accuracy and character set
    • RTL Bel and Contact and their related webradio stations (Belgium)
    • RTBF (Belgium)
    • KCLU (USA)
    • Hitradio RT1 (Germany)
    • Radio K÷ln (Germany)


    Background:
    Over the last few years I have made a few plugins to provide information about the currently playing track or programme for some internet radio streams - plus, for a few stations, providing some access to the broadcasters "listen again" information.

    Each plugin was heavily based on whatever I had released previously.
    This meant lots of similar code doing essentially the same thing leading to a maintenance challenge if an issue was found.

    With this plugin I am trying to pull all of the threads back together so that it becomes easier to add support for other radio stations in the future and also for users to be aware when a broadcaster is added to the supported set because the menu will be added to.

    There are still many areas that need to be improved including leak through into the settings page of elements from my other plugins that do not yet do anything here.
    In reality this is still a beta - but it works well enough.

    Note: The CoverSearch feature results in a connection to an outside system. Therefore your public IP address and other aspects of that connection are available at that remote site. You can disable the complete feature via the plugin settings.

    Adding new broadcasters / stations
    Am happy to consider adding new stations to the list but the chance of it happening depends on many things.
    The first is whether the data is available from the broadcaster - with a strong preference for it being in JSON format and a strong non-preference for only being able to parse a web site.
    The second is for the broadcaster to have multiple stations that all use the same underlying data.
    The third is that there is enough spare time to do it.

    Version history
    Code:
    0.0.5 28-Sep-2021 - First published release
    0.0.6 01-Oct-2021 - Add the Cesky rozhlas station - Pohoda - launched 1-Oct-2021
    0.0.7 10-Oct-2021
      - Add coverart for RadioBlues Flac and Mother Earth Radio
      - Add Caroline Flashback - artist, track and album name
      - Add Radio Espace (France / Lyon) and the related AllZIC Radio
      - For Cesky rozhlas - add more stations and some extra streams for the pre-existing stations - thanks mipa87
      - Add Linn Radio (album name in addition to what LMS already showed) - their cover art is broken so disabled for now
      - Allow broadcasters to be suppressed from menu and Now Playing info - requires restart when changing
    0.0.8 12-Oct-2021
      - Add Somehow Jazz (artist and title only)
      - Add Frequence3 - add coverart (not always present)
      - Show cover art for Linn Radio stations (temporary work around until they fix things)
    0.0.9 13-Oct-2021
      - Add ZOG
      - Add Europa Radio Jazz
      - Handle running on installations without Perl HTML::TreeBuilder module
    0.0.10 14-Oct-2021
      - Add St. Louis Classic Rock
    0.0.11 19-Oct-2021
      - Correct the "Hide Duration" capability
      - Explicitly set current_title as used by other applications - but still some related oddities
      - Add Supla Finland as a migration from previous dedicated plugin
    0.0.12 06-Nov-2021
      - Add RTE (Ireland) as a migration from previous dedicated plugin. Note - programme name and image only
    0.0.13 12-Nov-2021
      - Add Radio Swiss - Classic, Pop and Jazz
      - Mother Earth Radio started putting UTF8 BOM at start of data so strip it
      - KlassikRadio.de changed their station ids which stopped matching of songs
    0.0.14 15-Nov-2021
      - Extend the stream URL regex for KlassikRadio.de to show 2 more stations (Beats Radio Live and Klassik Radio Live)
      - Upgrade MotherEarth.de images if they are 100x100 to 400x400
      - Remove a use of regex qr because it causes problems on Perl version up to 5.19.4 (as used by LMS on MAC)
      - Moved stationdata into own subdirectory
    0.0.15 19-Nov-2021
      - Add Jazz24.org with cover art and album
      - Mother Earth Radio - new Flac stream URL and revised metadata feed now with album name
    0.0.16 26-Nov-2021
      - Add experimental cover art search for some stations that do not have any
      - Add Dandelion Radio - rewrites artist name to extract programme name
      - Add FSK - only shows programme name
      - For Europa Radio Jazz - strip from the end of the title the optional trailing record speed indicator (33RPM etc) and show programme name (e.g. live Jazz in the morning where there are no song details)
    0.0.17 29-Nov-2021
      - Add Offshore Music Radio
      - Add PiratenRadio.ch
      - For Europa Radio Jazz change some of the logo matching and string stripping
      - Handle Icecast bug in json status generation
      - Allzic Thema Summer becomes Allzic Noel and also enabled CoverSearch to try to fill occasional missing artwork
    0.0.18 09-Jan-2022
      - Add Supla Kantri and update stream URLs for all of the Supla stations
      - Add Radio Swiss AACplus stream links for Jazz and Pop
      - Add JB Radio2
    0.0.19 02-Mar-2022
      - Add KUTX and KNKX (NPR stations)
      - Add SpoonRadio (Rock stations from Switzerland)
      - Add CherieFM (France) and their 30+ themed channels
      - Added more EspaceRadio Group (France) stations, 
      - each under own top level menu, many of which have their own sub-channels - JazzRadio.fr, Alpes1, M Radio, Generations, La Radio Plus, La Radio Plus Alpes Du Sud, ODS, RVA, Virage, Durance (although they have a problem with their data at present), Nice.
      - Add OUIfm (France) and its 20 themed rock channels using experimental way to specify path to data
      - Add Tropiques FM (France) and its 11 themed channels ... although they have problems with song metadata accuracy and character set
      - Add KCRW (migrated from previous stand-alone plugin)
      - For Cesky Rozhlas ... add regional stations and some new stream URLs and new logos for all - thanks user mipa87
      - Add RTL Bel and Contact and their related webradio stations
      - Add RTBF stations
    0.0.20 1-Apr-2022
      - Change jbradio2 flac stream URL
      - Mother Earth additional stations are now free so add them
    0.0.21 11-May-2022
     - KCRW - change date/time handler
     - Tropiques FM - reconfigure data parser
     - Add KCLU
     - Add Hitradio RT1 (Germany) 27 stations - 4 regional plus 23 themed
     - Add Radio Koeln and 19 themed stations (song data slow to update)
    Last edited by Paul Webster; 2022-05-11 at 09:07.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Sweden
    Posts
    161
    Thanks for this plugin
    I was listening to Juke Radio (saved as an favourite) when I saw your announcement and installed it directly, and the artwork just pops up without me doing anything

    Noted one thing, but probably related to streaming site, metadata and artwork switch 30 seconds before that music starts
    1 x Touch
    1 x Radio
    Logitech Media Server Version: 8.2.1 - 1633378390 @ Mon Oct 4 23:25:45 CEST 2021
    Castbridge with 2 x Harman Kardon Citation One, setup as a stereo pair
    Squeeze Ctrl
    Squeeze Player
    Phone: Samsung Galaxy S 20

  3. #3
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,458
    Quote Originally Posted by T-bird View Post
    Noted one thing, but probably related to streaming site, metadata and artwork switch 30 seconds before that music starts
    My guess is that is the flac stream - which has more delays than the other two.
    There is a setting in the plugin to delay things ... but, at the moment it is a single setting for the entire plugin rather than per broadcaster/station/stream ... but, in any case, it relies on the metadata having a scheduled start time present which, for now, Juke Radio does not have so it has no effect here.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  4. #4
    Senior Member
    Join Date
    May 2010
    Location
    Sweden
    Posts
    161
    Yes it's the flac stream, things may change when it's not in test mode, I like it
    1 x Touch
    1 x Radio
    Logitech Media Server Version: 8.2.1 - 1633378390 @ Mon Oct 4 23:25:45 CEST 2021
    Castbridge with 2 x Harman Kardon Citation One, setup as a stereo pair
    Squeeze Ctrl
    Squeeze Player
    Phone: Samsung Galaxy S 20

  5. #5
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    8,882
    Quote Originally Posted by T-bird View Post
    Thanks for this plugin
    I was listening to Juke Radio (saved as an favourite) when I saw your announcement and installed it directly, and the artwork just pops up without me doing anything

    Noted one thing, but probably related to streaming site, metadata and artwork switch 30 seconds before that music starts
    I thought changing the delay in the plug-in settings would help but even set to 60 I still saw the artwork 23 seconds before the track started.

    Edit. I didn't see the previous couple of posts before posting

    Sent from my Pixel 3a using Tapatalk

  6. #6
    Senior Member
    Join Date
    Jun 2005
    Location
    The South, UK
    Posts
    419
    Minor cosmetic point, when running Material Skin, with the darker interfaces/themes (I use "black"), the Radio Now Playing logo appears as a white Question Mark, which looks wrong. I think this is because the logo is radio shape rendered in black with a ? in the centre - the "black" interface means the radio shape doesn't show.

    Similarly, the Naim Station top level logo is rendered in black, so with the darker themes it's hard/impossible to read.

    Otherwise, all looking good, works well, thanks.
    Location 1: LMS 8.3 on Win 10 Brix Server, x3 SB Radios, x1 Touch, x1 Controller : Location 2: LMS 8.3 on Win 10 Brix Server, x2 SB Radios, x1 Duet Receiver, x1 Controller : Alexa Mediaserver Smart Skill, Material Android, SqueezeliteX control

  7. #7
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,458
    As you have seen ... I'm not good at graphics.

    The icon is indeed supposed to be a radio with a question mark in it (meant to imply the listener wants to know what is playing on the radio).

    I'll have another go at making it work in Material dark mode. I see an attribute that it can zap so that the colours can be reversed but I probably need to do something with the border/background to make it work properly.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  8. #8
    Senior Member
    Join Date
    Mar 2017
    Posts
    3,500
    Quote Originally Posted by Paul Webster View Post
    As you have seen ... I'm not good at graphics.

    The icon is indeed supposed to be a radio with a question mark in it (meant to imply the listener wants to know what is playing on the radio).

    I'll have another go at making it work in Material dark mode. I see an attribute that it can zap so that the colours can be reversed but I probably need to do something with the border/background to make it work properly.
    All fill and stroke colours should be set to "#000" - then Material will recolour to match theme. Icons should also be monochrome, so no colours or shades of grey. See https://github.com/CDrummond/lms-mat...n-icon-mapping for more info.

    If you want I can look at these icons later when I have spare time.

    [Edit] Also, https://materialdesignicons.com/ is a good resource for Material style icons which can be downloaded as SVGs. Even if you can't find an exact match sometimes you can make an icon by using bits of other icons I use Inkscape to edit, combine paths, save as SVG, and then use 'scour' to trim down the SVG (removes useless metadata, etc).
    Last edited by cpd73; 2021-09-29 at 00:46.
    Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

  9. #9
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,458
    That is indeed how I did the RadioNowPlaying icon.
    It is in essence a simple radio with a textual "?" added in via Inkscape.

    I'll fiddle with it and the Naim one today.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  10. #10
    Senior Member
    Join Date
    Mar 2017
    Posts
    3,500
    Quote Originally Posted by Paul Webster View Post
    That is indeed how I did the RadioNowPlaying icon.
    It is in essence a simple radio with a textual "?" added in via Inkscape.

    I'll fiddle with it and the Naim one today.
    The naim one should probably be just a square PNG (perhaps light grey background) like the other station logos. (Perhaps they should all be square?)

    Also, what about the following SVG?

    RadioNowPlaying.zip
    Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •