Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Senior Member w3wilkes's Avatar
    Join Date
    Jan 2009
    Location
    Utah, USA
    Posts
    1,367

    LMS 7.9.2 Probable Playlist Handling Bug

    If I create this playlist;

    The Beatles\Abbey Road\08 Because.mp3
    The Beatles\Abbey Road\09 You Never Give Me Your Money.mp3
    The Beatles\Abbey Road\10 Sun King.mp3
    The Beatles\Abbey Road\11 Mean Mr Mustard.mp3
    The Beatles\Abbey Road\12 Polythene Pam.mp3
    The Beatles\Abbey Road\13 She Came In Through The Bathroom Window.mp3
    The Beatles\Abbey Road\14 Golden Slumbers.mp3
    The Beatles\Abbey Road\15 Carry That Weight.mp3
    The Beatles\Abbey Road\16 The End.mp3

    LMS scan misses the first song in the playlist. If I add a comment as the first line in the playlist like;

    # Abbey Road Medley
    The Beatles\Abbey Road\08 Because.mp3
    The Beatles\Abbey Road\09 You Never Give Me Your Money.mp3
    The Beatles\Abbey Road\10 Sun King.mp3
    The Beatles\Abbey Road\11 Mean Mr Mustard.mp3
    The Beatles\Abbey Road\12 Polythene Pam.mp3
    The Beatles\Abbey Road\13 She Came In Through The Bathroom Window.mp3
    The Beatles\Abbey Road\14 Golden Slumbers.mp3
    The Beatles\Abbey Road\15 Carry That Weight.mp3
    The Beatles\Abbey Road\16 The End.mp3

    Then LMS 7.9.2 sees all the songs in the playlist!
    Main system - Rock Solid with LMS 7.9.3 Official on WHS 2011 - 2 Duets and Squeeseslave
    Cabin system - Rock solid with LMS 7.9.3 Official on Win10 Pro - 1 RPi 3 Model B/Hifiberry DAC+ Pro/PiCorePlayer and Squeezeslave
    Squeezebox Boom - "At Large" player around both home and cabin
    Headphones and car - Android phone/Bluetooth w/full library on MicroSD card - PowerAmp music player app (similar to Material Skin)

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,388

    LMS 7.9.2 Probable PlaylistHandling Bug

    Would you mind sharing that file? What format did you use?

    Some text editor would leave a "byte order mark" (BOM) at the beginning
    of the file. This could probably confuse the parsing. Please check your
    editor's settings whether this can be disabled.
    --

    Michael

  3. #3
    Senior Member w3wilkes's Avatar
    Join Date
    Jan 2009
    Location
    Utah, USA
    Posts
    1,367
    The playlist is in the attached zip (couldn't attach a .m3u). And just a FYI, this file works fine in the Android Poweramp music player app.
    Attached Files Attached Files
    Main system - Rock Solid with LMS 7.9.3 Official on WHS 2011 - 2 Duets and Squeeseslave
    Cabin system - Rock solid with LMS 7.9.3 Official on Win10 Pro - 1 RPi 3 Model B/Hifiberry DAC+ Pro/PiCorePlayer and Squeezeslave
    Squeezebox Boom - "At Large" player around both home and cabin
    Headphones and car - Android phone/Bluetooth w/full library on MicroSD card - PowerAmp music player app (similar to Material Skin)

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,260
    First three bytes 0xEF 0xBB 0xBF - It has the BOM mark https://en.wikipedia.org/wiki/Byte_order_mark

  5. #5
    Senior Member w3wilkes's Avatar
    Join Date
    Jan 2009
    Location
    Utah, USA
    Posts
    1,367
    The editor I use for editing M3U's is SPFLite because of its command line capabilities and I can't find a setting to shut off the BOM string for UTF8 encoded files. From reading up on BOM strings on UTF8 files BOM is allowed, but not required for UTF8, and can confuse programs that weren't expecting the BOM on UTF8 files, apparently LMS did not expect or handle the BOM prefix on the first record in my playlist even though the Unicode standard allows for BOM in UTF8 files.
    https://en.wikipedia.org/wiki/Byte_order_mark
    I use SPFlite because it has command line capabilities to do things like find all lines that start with # (pound sign) with a single command, delete those lines with another single command and mass changing text so that I can change the explicit file locations M3U's to relative file locations also with a single command.

    Now that I know about this I can just insert a comment line as the first line and things should be fine.
    Main system - Rock Solid with LMS 7.9.3 Official on WHS 2011 - 2 Duets and Squeeseslave
    Cabin system - Rock solid with LMS 7.9.3 Official on Win10 Pro - 1 RPi 3 Model B/Hifiberry DAC+ Pro/PiCorePlayer and Squeezeslave
    Squeezebox Boom - "At Large" player around both home and cabin
    Headphones and car - Android phone/Bluetooth w/full library on MicroSD card - PowerAmp music player app (similar to Material Skin)

  6. #6
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,260
    Quote Originally Posted by w3wilkes View Post
    The editor I use for editing M3U's is SPFLite because of its command line capabilities and I can't find a setting to shut off the BOM string for UTF8 encoded files.
    Did you try to tell SPFlite that the encoding to be used is ANSI and not UTF8 ?

    LMS should be able to handle BOM - IIRC Perl file handling can do this automatically but m3u can be streamed so I expect standard file handling may not be used.

    A think the extension m3u8 was supposed to indicate a playlist in UTF8, while m3u was a plain ASCII/ANSI file - although the extension has been used for other "meanings".
    Last edited by bpa; 2020-02-26 at 14:55.

  7. #7
    Senior Member w3wilkes's Avatar
    Join Date
    Jan 2009
    Location
    Utah, USA
    Posts
    1,367
    I did try specifying ANSI and it resets to UTF8. I've also submitted a support request to SPFLite requesting that they add an encoding option of something like "UTF8 -BOM", basing the request on the Unicode Standard;
    https://www.unicode.org/versions/Uni...andard-9.0.pdf
    In the last paragraph on page 40 it states ôUse of a BOM is neither required nor recommended for UTF-8" even though programs encountering the BOM should handle it.
    Main system - Rock Solid with LMS 7.9.3 Official on WHS 2011 - 2 Duets and Squeeseslave
    Cabin system - Rock solid with LMS 7.9.3 Official on Win10 Pro - 1 RPi 3 Model B/Hifiberry DAC+ Pro/PiCorePlayer and Squeezeslave
    Squeezebox Boom - "At Large" player around both home and cabin
    Headphones and car - Android phone/Bluetooth w/full library on MicroSD card - PowerAmp music player app (similar to Material Skin)

  8. #8
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,388

    LMS 7.9.2 Probable PlaylistHandling Bug

    I quickly skimmed the playlist parsing code because I remembered BOM was
    mentioned there. Turns out the BOM would be removed from CUE sheets
    unconditionally, if it was UTF8 in .pls files, and if the line was a
    comment in .m3u... Go figure!

    I committed a change which should fix this behaviour. Builds should be
    out in about an hour. Please give it a try!

    --

    Michael

  9. #9
    Senior Member w3wilkes's Avatar
    Join Date
    Jan 2009
    Location
    Utah, USA
    Posts
    1,367
    Quote Originally Posted by mherger View Post
    I quickly skimmed the playlist parsing code because I remembered BOM was
    mentioned there. Turns out the BOM would be removed from CUE sheets
    unconditionally, if it was UTF8 in .pls files, and if the line was a
    comment in .m3u... Go figure!

    I committed a change which should fix this behaviour. Builds should be
    out in about an hour. Please give it a try!

    --

    Michael
    LMS did tell me there's an update, but when I installed at 14:00GMT it got
    Logitech Media Server Version: 7.9.3 - 1580910396 @ Thu Feb 6 04:07:42 WEST 2020
    which still drops the first line of a playlist when a BOM prefix is in the file.

    Do I need to go to somewhere else to download the corrected version?
    Main system - Rock Solid with LMS 7.9.3 Official on WHS 2011 - 2 Duets and Squeeseslave
    Cabin system - Rock solid with LMS 7.9.3 Official on Win10 Pro - 1 RPi 3 Model B/Hifiberry DAC+ Pro/PiCorePlayer and Squeezeslave
    Squeezebox Boom - "At Large" player around both home and cabin
    Headphones and car - Android phone/Bluetooth w/full library on MicroSD card - PowerAmp music player app (similar to Material Skin)

  10. #10
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,388

    LMS 7.9.2 Probable PlaylistHandling Bug

    > LMS did tell me there's an update, but when I installed at 14:00GMT it
    > got
    > Logitech Media Server Version: 7.9.3 - 1580910396 @ Thu Feb 6 04:07:42
    > WEST 2020


    Oh, I only applied the fix to LMS8... are you willing to take the leap?
    I would have loved to see this change confirmed before back-porting it.

    --

    Michael

Posting Permissions

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