Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    2,099
    Quote Originally Posted by mherger View Post
    > I'll give it a go.

    Ok. There's CPAN/Template/Filters.pm somewhere in your LMS installation
    path. Can't tell where it is on your system. Find it :-).

    Open the file in vi (or your preferred editor. Scroll down to line 23:

    https://github.com/Logitech/slimserv...Filters.pm#L23

    Put a # in front of the "use warnings", or add "no warnings 'locale';"
    after that line (to only disable some of the warnings). Save the change
    and restart LMS.

    This is not going to fix the issue, but it will prevent the spilling of
    the log file. The problem seems to stem from rendering web pages with
    wide characters content (accented or non-latin etc.). Alas I couldn't
    see any problem rendering the web UI in Chinese, or list Japanese radio
    stations. Therefore I'm going to silence the warning away...

    --

    Michael
    Michael

    Done that, like this:

    Code:
    package Template::Filters;
    
    
    use strict;
    use warnings;
    no warnings 'locale';
    use locale;
    use base 'Template::Base';
    use Template::Constants;
    use Scalar::Util 'blessed';
    
    
    our $VERSION   = 2.86;
    our $AVAILABLE = { };
    Restart LMS, go to settings > server log, just one warning now which I've seen a few times before recently:

    Code:
    [17-05-17 22:46:35.4345] main::init (387) Starting Logitech Media Server (v7.9.1, 1494667952, Sat May 13 09:43:23 UTC 2017) perl 5.024000 - arm-linux-gnueabihf-thread-multi-64int
    [17-05-17 22:46:39.2987] Slim::Utils::Misc::msg (1244) Warning: [22:46:39.2975] Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/
                ([a-zA-Z\$0-9]+)\s*:\s*function
                \(([a-z,]+)\){ <-- HERE ([^}]+)}
                  / at /usr/local/slimserver/Cache/InstalledPlugins/Plugins/YouTube/JSInterp.pm line 378.
    LMS 7.9 on a Raspberry Pi 3/piCorePlayer 3.20, playlists and LMS cache on a USB stick, 25K+ music library on a WD MyCloud network drive,
    Rasberry Pi 2/piCorePlayer 3.02 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Raspberry Pi 3/piCorePlayer 3.20beta7/HiFiBerry DAC+ > Cambridge Audio Minx 5 (study)
    Rasberry Pi 2/piCorePlayer 3.02 > HiFiBerry DAC+ > Sharp micro system (garage)
    1 x Boom (dining room) - 1 x Touch (used for display and controller only) - 1 x SB3 (spare) - 1 x Radio (spare)

  2. #12
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,538

    "wide characters" in LMS

    > Restart LMS, go to settings > server log, just one warning now which
    > I've seen a few times before recently:
    >
    >
    > Code:
    > --------------------
    > [17-05-17 22:46:35.4345] main::init (387) Starting Logitech Media Server (v7.9.1, 1494667952, Sat May 13 09:43:23 UTC 2017) perl 5.024000 - arm-linux-gnueabihf-thread-multi-64int
    > [17-05-17 22:46:39.2987] Slim::Utils::Misc::msg (1244) Warning: [22:46:39.2975] Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/
    > ([a-zA-Z\$0-9]+)\s*:\s*function
    > \(([a-z,]+)\){ <-- HERE ([^}]+)}
    > / at /usr/local/slimserver/Cache/InstalledPlugins/Plugins/YouTube/JSInterp.pm line 378.
    > --------------------


    That's unrelated. The suggested change would only have any impact on
    that one single class Template::Filters. The error you're seeing likely
    is due to a change in the Youtube JS, breaking the parser. Oh, and
    probably an unsafe regex in the parser, too... but that's for a
    different thread.

    --

    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
  •