Announcement

Collapse
No announcement yet.

Announce - Song info plugin for FIP radio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Announce - Song info plugin for FIP radio

    > They are speaking Alsatian ... sound a lot like Schwiizerdütsch which I
    > remember hearing a lot in Bern many years ago.


    Ha! I'd have said it sounds like Bavarian dialect :-D

    --

    Michael
    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
    Announce - Song info plugin for Radio France stations (FIP, France Inter etc)

    This is a plugin for Radio France - covering FIP (and the web only stations), France Musique, Mouv' (and the web only stations), France Inter, France Info, France Culture and France Bleu (40+ stations).

    It provides song/segment information for live streams.
    Since version 0.3.5 you can also browse station schedule by date to select old programmes and segments for replay
    * Note - very limited replay of content from FIP and none from web-only stations

    Once installed and LMS has been restarted you should play one of the supported radio stations. If the plugin is working then you should see artist details (artist/title/{cover}/{album}) appear around the time that a new track starts or programme details.
    You should see Radio France under the Radio menu - and below that you can choose to access live streams or past schedules. Under each you will see the top level stations and then below that again the stations in that set (where applicable). You can use the settings to move this menu to the Apps/My Apps section or hide it completely.
    If you choose to play the HLS streams then you will probably need the "PlayHLS v2" plugin.

    FIP stations supported:
    FIP (including regional variants while they last), FIP ... Rock, Jazz, Groove, Monde, Electro, Reggae, Tout Nouveau, Pop, Metal, Hip-Hop.

    France Musique stations supported:
    France Musique, Classique Easy, Opéra, La Baroque, Classique Plus, Concerts Radio France, La Jazz, La Contemporaine, Ocora Monde, Evenementielle / Classique Kids / B.O.

    Mouv’ stations supported:
    Mouv’
    Classics, DanceHall, R'N'B, Rap US, Rap Français, 100% Mix, Kids'n Family
    Mouv'Xtra replaced by 100% Mix

    Other Radio France (general) stations supported:
    France Inter
    France Info
    France Culture
    France Bleu (40+ stations)

    Note: Radio France does not always provide track information in a timely manner - so if you find that sometimes no new details arrive then check on the Radio France site for that station to see if they have the same problem.

    This plugin relies on the time on your local LMS server to be roughly correct - timezone and time - because the local time is compared with the scheduled time for each track
    If things are not working then enable Debug logging for this plugin via LMS/Settings/Advanced/Logging interface, repeat the problem and then check the LMS logs.
    You might need a version of LMS more recent than 7.9.1 Feb 2018 because of improvements in LMS to handling HTTPS connections - because both GitHub (where the plugin is stored ... meaning that downloads or updates might fail) and Radio France (some of the metadata sources where changed by RF to redirect to https destinations).

    You can configure whether or not to have the album name displayed. Default is to show it (if provided by Radio France) but as a consequence you will no longer see the station name.

    One anomaly with the data from Radio France is that they provide the name/title/album in upper case which doesn't look great so I convert them but this can lead to some odd presentation - especially as they replace apostrophe with space in their data ... so, for example ...
    "I'll Be There" will end up as "I Ll Be There".
    Never mind
    If you any questions then reach out ...

    It is included in the LMS list of 3rd-party plugins - so just search in there for "Radio France".



    Note - this replaces my previous "FIPRadio" plugin. So if you installed that one then the best thing to do is disable that earlier plugin, remove the repository, restart LMS and then enable "Radio France" (and restart LMS again).

    Version history:
    0.4.3 24-Sep-2022
    - Reinstate song information on France Musique (note - will not work for all tracks)
    - Add FIP Metal and FIP Hip-Hop

    0.4.2 28-May-2022
    - Also replace icon for France Bleu Elsass station

    0.4.1 28-May-2022
    - Replace icons for France Bleu stations

    0.4.0 - 03-Jan-2022
    - Restore programme details for Now Playing on all stations

    0.3.7 28-Dec-2021
    After changes at RadioFrance needed to adjust things to collect the programme name.
    More work needed to collect programme description and icon from a different location.
    Also - correction for FIP Groove HLS URL ( thanks @Atmis )

    0.3.6 20-Dec-2021
    Radio France appear to have phased out the old metadata API ... so switch to new one. Only done for music stations for now. Rest to come later.

    0.3.5 09-Mar-2021
    Add replay from schedules
    Add icon for use by Material skin

    0.2.4 23-Oct-2020
    Add France Musique Opéra

    0.2.3 17-Jul-2020
    Add France Musique La Baroque
    Spelling correction English to French ... Blue to Bleu

    0.2.2 23-Jun-2020
    Add icon for streaming links

    0.2.1 22-Jun-2020
    Correct streaming link for 3 France Bleu stations

    0.2.0 22-Jun-2020
    Add streaming links via LMS menu (Radio or My apps)
    Add France Bleu 40+ stations
    Add Mouv' Kids'n Family
    Metadata source changed for FIP Monde

    0.1.32 17-Jun-2020
    Add FIP Pop

    0.1.31 12-Jun-2020
    Match the HLS stream URLs faster

    0.1.30 11-Jun-2020
    Match the HLS stream URLs

    0.1.29 06-Jun-2020
    Mouv stations sometimes have 0 start/end time
    With the end time of 0 it meant that track details were not being shown.
    Now treated as meaning it is now playing. Will mean that there are no progress bars for those tracks though.

    0.1.28 23-Apr-2020
    Use "album" field for programme segment name
    If the "album" field is available (no synopsis in it and setting not disabling use of the field) then put the segment name there. Otherwise
    it is appended to programme name (song title).
    Most shows do not have segment names. Try France Info to see it in action.

    0.1.27 29-Sep-2019
    Inconsistent use of metadata across stations so use different way to show track names when inside a programme like Jazz A Fip

    0.1.26 22-Sep-2019
    Add another way to get programme art
    Update default images for stations

    0.1.25 11-Jul-2019
    Add support for France Musique B.O.

    0.1.24 10-Jul-2019
    Add new station FIP L'été Metal

    0.1.23 09-Jul-2019
    Changed URLs for meta data and logos for some stations

    0.1.22 03-Jul-2019
    Corrected typing error that prevented ClassiquePlus track info from appearing

    0.1.21 19-Jun-2019
    Updated default logos for some stations
    Change action when joining a song in progress. Show the offset into the song if possible.
    Do not include the unused SqueezeNetwork module because results in errors if LMS running in "nomysqueeze" mode

    0.1.20 15-Feb-2019
    Added support for the new streams from Mouv'

    Mouv' stations supported:
    Mouv'
    Classics, DanceHall, R'N'B, Rap US, Rap Français, 100% Mix
    Mouv'Xtra was replaced by 100% Mix

    At the time of writing they provide only artist, track and cover art (no year or label).

    0.1.19 12-Feb-2019
    Test version - adding in support for new streams from Mouv'

    0.1.18 17-Jan-2019
    Avoid warning about 2 lines being ambiguous by adding spaces around a minus sign

    0.1.17 16-Jan-2019
    Improve hiding of duration when option is set

    0.1.16 05-Nov-2018
    Support for France Inter, France Info, France Musique and France Culture (can be disabled in settings)
    FIP Autour de Reggae now supported as a distinct station rather than through FIP Evenement

    0.1.15 17-Oct-2018
    Experimental support for France Inter (can be disabled in settings)

    0.1.14 16-Oct-2018
    Show (optionally) the duration of the song (thanks to philippe_44 for the key two lines of code). If you enable/disable this then wait for one track before it takes effect
    Add configurable stream delay parameter - default is 2 seconds. Indicates how far behind real time the stream is - making this accurate can help with timely changes of song info, especially visible if track duration is shown

    0.1.13 04-May-2018
    Data sources for the regional FIP stations stopped working in mid-March 2018 so use alternate (same as main FIP)

    0.1.12 02-May-2018
    Radio France now sometimes includes an empty artist name (performers) rather than omitting the field - so use alternate field (authors) in that case

    0.1.11 28-Feb-2018
    Add warning if Perl SSL support missing because https sometimes required to collect metadata.

    0.1.10 17-Jun-2017
    Add FIP Autour de l'Electro
    Change alternate fetch mechanism to always fetch if available and remove setting that controlled it
    Change some station logos to higher definition

    0.1.9 06-Mar-2017
    Add ability to show record label (publisher) and year at end of album name

    0.1.8 22-Feb-2017
    Modify the alternate fetch mechanism to get from both sources to improve chances of getting cover art

    0.1.7 07-Feb-2017
    Add alternate URL for Mouv'

    0.1.6 07-Feb-2017
    Add radio station Mouv' Xtra
    Add setting to allow programme image to replace station logo
    - note will not have any effect for many stations because many do not provide the data

    0.1.5 06-Feb-2017
    Add alternate URLs for FIP stations and make them (all in one) selectable
    Makes more tracks have images but updates might not be as timely
    Last edited by Paul Webster; 2022-09-24, 12:36. Reason: Version 0.4.3 released
    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

    Comment


      #3
      Thanks Paul
      Plugin is working great here and I'm listening to more FIP as a result :-)
      Jeremy
      RaspberryPi4 server running Raspbian & LMS 8.3, USB hard drive
      Lounge - Pi4 running piCoreplayer 8 connected via USB to Naim DAC-V1, Linn LP12/Ekos/Troika, Naim NAC102, Linn Tunebox crossover, 4 x Naim NAP250 power amps with Avondale Audio 2018 mods, Linn Keltik active isobarik speakers. Cotrolled by 2 Jogglers or phone
      Office - Squeezebox Boom
      Kitchen - Squeezebox Radio x2
      Sunroom - Squeezebox Boom
      Bedroom - Squeezebox Radio x2 plus another in en-suite
      Dining Room - Squeezebox Radio

      Comment


        #4
        Thanks Jeremy.

        I've been making a new one today ... to add the 7 Internet-only stations from France Musique ... so I'll probably end up with an add-in call RadioFrance that can do FIP and France Musique and maybe some others.

        France Musique Internet stations are:
        Classique Easy
        Classique Plus
        Concerts Radio France
        Ocora Monde
        La Jazz
        La Contemporaine
        Classique Kids / L'evenementielle (currently plays as Kids but other naming suggests this might change from time to time)

        Looks like no point in doing the main France Musique because they seem to only provide programme info and TuneIn already has that.
        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

        Comment


          #5
          and just added Mouv' as well

          I plan to publish a new repo tomorrow.
          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

          Comment


            #6
            Announce - Song info plugin for FIP radio

            > One anomaly with the data from FIP is that they provide the
            > name/title/album in upper case which doesn't look great so I convert
            > them but this can lead to some odd presentation - especially as they
            > replace apostrophe with space in their data ... so, for example ...
            > "I'll Be There" will end up as "I Ll Be There".


            How do you do the case change? I'm trying the same, but I'm often
            failing on accented characters...

            --

            Michael
            Michael

            "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
            (LMS: Settings/Information)

            Comment


              #7
              I'm doing the same as you ... because the routine comes from your DRS plugin.
              However, FIP sends only uppercase A-Z - no accents - so straightforward ... but ends-up being technically wrong.
              I have reached out to them to suggest that that change what they send but apart from telling me that it has been forwarded to the right department, I haven't had anything significant back.

              When I extended this to support other Radio France stations I saw that their data does include accented characters but a totally different data format so looks like different teams working on their web infrastructure.

              From reading a bit about how lc works ... maybe it is necessary to specify that the input string is UTF8 encoded.
              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

              Comment


                #8
                This hack sort of shows what is going on ...

                I tried it on a Windows 10 "DOS" prompt session
                Code:
                #!/usr/bin/perl
                use warnings;
                use strict;
                use Encode qw(encode decode decode_utf8);
                
                my $in_enc = 'utf-8';
                my $out_enc = 'cp850';
                my $testoctets = pack("C*", 0xC3, 0x84);	# Upper-case A-umlaut as UTF-8 Store this script as ANSI/ASCII to show that it does not rely on being UTF-8 file
                
                # text strings::
                my $text_str = decode($in_enc, $testoctets);
                print "Decoded by decode:$text_str:\n";
                
                $text_str = decode_utf8($testoctets);
                print "Decoded by decode_utf8:$text_str:\n";
                
                $text_str = lc $text_str;
                print "lc of string:$text_str:\n";
                print encode($out_enc, $text_str); # should print 'ä', if lc worked as expected
                From Windows command line prompt ...
                chcp
                you will see the current code page - was cp850 on mine
                which matches the out_enc above ... and the script works (in that the final print out is lowercase a-umlaut
                then type
                cpcp 65001
                run script again and it does not appear to work (because it is producing the output in a character set not handled by the terminal session)
                and change $out_enc to utf-8 and rerun the script then it should display the lower case a-umlaut
                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

                Comment


                  #9
                  Originally posted by jeremy View Post
                  Thanks Paul
                  Plugin is working great here and I'm listening to more FIP as a result :-)
                  Jeremy
                  Ah

                  The Auld Alliance - Scotland and France



                  We'll see how you get on next Sunday


                  Click image for larger version

Name:	1 auld alliance.jpe
Views:	1
Size:	13.5 KB
ID:	1562070

                  Comment


                    #10
                    Paul, just wanted to thank you for this plugin.

                    I stumbled on FIP toward the end of last year and I love the main station. The one thing lacking, given my rudimentary French, was a readout of artist and title ... and now you've filled that gap. I didn't know about your earlier plugin, but this new one is a godsend.

                    I've now added the jazz stream and the rock stream to my faves, but the main FIP station remains my real fave. Even if I don’t grasp much of the banter from the presenters, the girls all sound sexy and the boys all unshaven. Or is the other way around? Anyway, such an eclectic (yes, éclectique!) mix of music. Right up my street.

                    This is what Squeezebox has always been about and hopefully always will.

                    Thank you!

                    Comment


                      #11
                      Originally posted by whitman View Post
                      Paul, just wanted to thank you for this plugin.

                      I stumbled on FIP toward the end of last year and I love the main station. The one thing lacking, given my rudimentary French, was a readout of artist and title ... and now you've filled that gap. I didn't know about your earlier plugin, but this new one is a godsend.
                      You are welcome.
                      The earlier FIP-only plugin lasted a few days once I worked out how to give France Musique the same treatment.
                      France Musique also has a jazz station that you might like to try.
                      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

                      Comment


                        #12
                        Over 20,000 signatures asking Radio France to keep running the regional variants of FIP.
                        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

                        Comment


                          #13
                          Really great plugin

                          Your plugin is working fine, I was missing songs info for ages, thanks a lot !

                          All webradios URL are here :

                          Share and rejoyce !
                          Last edited by lopasilver; 2017-02-16, 12:30.
                          2 Touch, 2 Radios, Squeezeplay
                          Synology DS213 w/ LMS v.8
                          Mac Pro /MacOS High-Sierra & HP Probook 450 G5 /Manjaro Linux

                          Comment


                            #14
                            Great

                            That's really great ! I didn't knew these french radios where known in England (and other countries).
                            (I love the women voices too)
                            Thanks a lot, you're wonderful !
                            LMS 8.x.x
                            on Linux Mageia 8 and RPI 3
                            1 SB3, 2 radio, 1 touch, 1 transporter SE, 1 chromecast audio
                            Plugins : Trackstat, Smartmix, MusicIP, ...

                            Comment


                              #15
                              génial

                              Ca marche super,
                              un grand merci
                              - DAC32 (polyvection) + turntable : Thorens TD190-2 + CD player : Marantz CD5004 + K7 player : Toshiba +ampli : Marantz PM7001 + speaker : Magnat Quantum 1005.
                              - Raspberry 2 + Ampli-dac : Alientek D8 + speaker : Magnat Quantum Edelstein
                              - Daphile on Acer_Aspire_One + Ampli-dac : Advance Acoustic A60 + Speaker : Elipson Studio Pro

                              Comment

                              Working...
                              X