Announcement

Collapse
No announcement yet.

ANNOUNCE: YouTube Plugin (API v3)

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

    Still with no sound issue

    I have v0.144.2 and checked the Signature file which has the necessary comma. However, I am not getting any sound on Youtube despite they show as playing.
    My logfile shows the following error
    [22-11-18 02:41:53.6616] Slim::Web::JSONRPC::requestMethod (425) Request failed with error: Bad dispatch!
    [22-11-18 02:41:53.6688] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands:laylistJumpCommand]: [Can't locate object method "get_cookies" via package "HTTP::Cookies" at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 386.
    ]

    Any advice would be much appreciated. Thanks

    Comment


      hi,
      i have lms on picoreplayer
      i installed youtube plugin... i created client id, client secret, api, i validate Oauth2 authorization, then apply and reboot...
      and still nothing appears in youtube plugin (all parts are empty)... any help?

      Comment


        Originally posted by davidscrat View Post
        hi,
        i have lms on picoreplayer
        i installed youtube plugin... i created client id, client secret, api, i validate Oauth2 authorization, then apply and reboot...
        and still nothing appears in youtube plugin (all parts are empty)... any help?
        Did you add your "Country for categories" in settings?
        Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
        Bedroom: Radio
        Bathroom: Radio

        Comment


          it is ok i have FR written

          Comment


            Originally posted by davidscrat View Post
            it is ok i have FR written
            Do you get results when you search in one of the categories?
            Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
            Bedroom: Radio
            Bathroom: Radio

            Comment


              it is written empty in categories...

              Comment


                Originally posted by davidscrat View Post
                it is written empty in categories...
                Does it look like this? If it does you need to enter text in one of the categories to search. Click image for larger version

Name:	Screenshot_20230204-173745.png
Views:	187
Size:	117.0 KB
ID:	1629172
                Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                Bedroom: Radio
                Bathroom: Radio

                Comment


                  yep, same screen but i have nothing in the search results, it replies empty...

                  Comment


                    Originally posted by davidscrat View Post
                    yep, same screen but i have nothing in the search results, it replies empty...
                    Just to be clear if you search in Material skin are you clicking the search icon which appears at the end of the line when you enter text?
                    Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                    Bedroom: Radio
                    Bathroom: Radio

                    Comment


                      Originally posted by slartibartfast View Post

                      Just to be clear if you search in Material skin are you clicking the search icon which appears at the end of the line when you enter text?
                      yes

                      Comment


                        Maybe set logging for the YouTube plugin to debug or info and check the server log.
                        Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                        Bedroom: Radio
                        Bathroom: Radio

                        Comment


                          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=AIzaSyBwVtG6tTt2k7r0jPUm3zqpYd Wu2osAn0M&hl=FR&maxResults=50&order=date&part=snip pet®ionCode=FR",
                          "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 /usr/local/slimserver/Cache/InstalledPlugins/Plugins/YouTube/API.pm line 169.
                          [23-02-05 01:20:57.5263] Plugins::YouTube::API::__ANON__ (170) 403 Forbidden
                          [23-02-05 01:20:57.5268] Plugins::YouTube::API::__ANON__ (81) no results
                          [23-02-05 01:20:57.5426] 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 /usr/local/slimserver/Cache/InstalledPlugins/Plugins/YouTube/API.pm line 97.
                          ; fh=Slim::Networking::Async::Socket::HTTPS=GLOB(0x3 e5adc60)​

                          Comment


                            Originally posted by davidscrat View Post
                            [23-02-05 01:20:57.5263] Plugins::YouTube::API::__ANON__ (170) 403 Forbidden
                            [23-02-05 01:20:57.5268] Plugins::YouTube::API::__ANON__ (81) no results
                            Hi. If you haven't already, I would suggest deleting your Google project (API access key) and recreating if from scratch. (and also maybe make sure you have the latest stable versions of picoreplayer, LMS and the plugin)
                            Last edited by nickey; 2023-02-10, 12:01.

                            Comment


                              well, i tried to create a new google project.


                              } at /usr/local/slimserver/Cache/InstalledPlugins/Plugins/YouTube/API.pm line 169.
                              [23-02-12 12:12:50.6773] Plugins::YouTube::API::__ANON__ (170) 404 Not Found
                              [23-02-12 12:12:50.6776] Plugins::YouTube::API::__ANON__ (81) no results
                              [23-02-12 12:12:50.6960] 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 /usr/local/slimserver/Cache/InstalledPlugins/Plugins/YouTube/API.pm line 97.
                              ; fh=Slim::Networking::Async::Socket::HTTPS=GLOB(0x3 a084db8)​

                              Comment


                                Originally posted by davidscrat View Post
                                well, i tried to create a new google project.


                                } at /usr/local/slimserver/Cache/InstalledPlugins/Plugins/YouTube/API.pm line 169.
                                [23-02-12 12:12:50.6773] Plugins::YouTube::API::__ANON__ (170) 404 Not Found
                                [23-02-12 12:12:50.6776] Plugins::YouTube::API::__ANON__ (81) no results
                                [23-02-12 12:12:50.6960] 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 /usr/local/slimserver/Cache/InstalledPlugins/Plugins/YouTube/API.pm line 97.
                                ; fh=Slim::Networking::Async::Socket::HTTPS=GLOB(0x3 a084db8)​
                                Ok, how strange that it would go from a 403 Forbidden to a 404 Not Found as those seem like fundamentally different issues. I suspect you'll need to wait for someone more knowledgeable or the developer(s) to chime in then, sorry.

                                Comment

                                Working...
                                X