philippe44 / LMS-YouTube

Play YouTube videos on LMS
38 stars 15 forks source link

Videos no longer render on MacOS #39

Closed Kezzsim closed 2 years ago

Kezzsim commented 2 years ago

Reinstalled this plugin after a few months of not using it, but I can't get it to load any video results:

Screen Shot 2022-02-06 at 11 52 33 PM

This is the log output

[22-02-06 23:52:23.0006] Slim::Utils::Misc::msg (1341) Warning: [23:52:23.0005] do {
  my $a = bless([
    sub { "???" },
    sub { "???" },
    { timeout => 15 },
    bless({
      ALL            => sub { "???" },
      DEBUG          => 'fix',
      ERROR          => sub { "???" },
      FATAL          => 'fix',
      INFO           => 'fix',
      OFF            => 'fix',
      TRACE          => 'fix',
      WARN           => 'fix',
      additivity     => 1,
      appender_names => [],
      category       => "network.asynchttp",
      is_ALL         => 0,
      is_DEBUG       => 0,
      is_ERROR       => 1,
      is_FATAL       => 1,
      is_INFO        => 0,
      is_OFF         => 1,
      is_TRACE       => 0,
      is_WARN        => 0,
      layout         => undef,
      level          => 40_000,
      num_appenders  => 0,
    }, "Slim::Utils::Log"),
    "GET",
    "https://www.googleapis.com/youtube/v3/videoCategories?key={KEY_REMOVED_FOR_GITHUB_ISSUE}=EN&maxResults=50&order=date&part=snippet®ionCode=US",
    "403 Forbidden",
    undef,
    undef,
    undef,
    undef,
    undef,
    undef,
  ], "Slim::Networking::SimpleAsyncHTTP");
  $a->[3]{DEBUG} = $a->[3]{ALL};
  $a->[3]{FATAL} = $a->[3]{ERROR};
  $a->[3]{INFO} = $a->[3]{ALL};
  $a->[3]{OFF} = $a->[3]{ERROR};
  $a->[3]{TRACE} = $a->[3]{ALL};
  $a->[3]{WARN} = $a->[3]{ALL};
  ($a, "403 Forbidden");
} at /Users/kezz/Library/Caches/Squeezebox/InstalledPlugins/Plugins/YouTube/API.pm line 169.
[22-02-06 23:52:23.0007] Plugins::YouTube::API::__ANON__ (170) 403 Forbidden
[22-02-06 23:52:23.0008] Plugins::YouTube::API::__ANON__ (81) no results
[22-02-06 23:52:23.0050] Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Networking::Async::_async_read: Can't use an undefined value as an ARRAY reference at /Users/kezz/Library/Caches/Squeezebox/InstalledPlugins/Plugins/YouTube/API.pm line 97.
; fh=Slim::Networking::Async::Socket::HTTPS=GLOB(0x7febe61ab668)

I think it might be an issue with the SSL implementation on this computer but I'm not sure what I would need to configure exactly... openSSL?

╭─ kezz@anemone ~                                                                                                                                                                                          ✔  930  23:59:30
╰─ openssl version
LibreSSL 2.6.5
Kezzsim commented 2 years ago

Resolved: Bad YoutubeAPI key 403 over quota even though the key had not been used in YEARS Solution: Disable YouTube for the current project you have on GCP and make a new project