Home of the Squeezebox™ & Transporter® network music players.
Page 76 of 83 FirstFirst ... 26667475767778 ... LastLast
Results 751 to 760 of 830
  1. #751
    Junior Member
    Join Date
    Mar 2020
    Posts
    2
    Hi,

    I cant seem to make this work. I've created a brand new project and api key.
    I haven't filled out anything in the personal account section, is that a requirement to get the plugin to work?
    The server log says this:

    t C:\ProgramData\Squeezebox\Cache\InstalledPlugins/Plugins/YouTube/API.pm line 169.
    [20-03-22 20:18:50.4836] Plugins::YouTube::API::__ANON__ (170) 400 Bad Request
    [20-03-22 20:18:50.4838] Plugins::YouTube::API::__ANON__ (81) no results
    [20-03-22 20:18:50.4846] 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 C:\ProgramData\Squeezebox\Cache\InstalledPlugins/Plugins/YouTube/API.pm line 97.
    ; fh=Slim::Networking::Async::Socket::HTTPS=GLOB(0xc 3cd79c)
    [20-03-22 20:18:52.8667] Slim::Utils::Misc::msg (1255) Warning: [20:18:52.8665] (
    bless([
    sub { "???" },
    sub { "???" },
    { params => {}, timeout => 15 },
    "GET",
    "https://www.googleapis.com/youtube/v3/videoCategories?key=xxxxxxxxxxxxxxl=NB&maxResults= 50&order=date&part=snippet&regionCode=NB",
    "400 Bad Request",
    undef,
    undef,
    undef,
    undef,
    undef,
    undef,

    Edit: I filled out the Oauth section, and I can now play music saved in a playlist. It still doesn't display anything under normal searches thou. At least I know the API key is working.

    Edit2: I figured it out! It was the region code that messed it up. Changed the region code to US, and now everything is peachy. Big thanks to the developer for making this awesome plugin!
    Last edited by sniki; 2020-03-22 at 15:58.

  2. #752

    YouTube search produces no results

    Greetings,

    Similar issue to sniki, however my region code is set to US and appears to be appropriate.

    When I attempt a search from either http://LMS Server IP address:9000/ or from SqueezePlay on any of the computers I use as clients, the Youtube search yields nothing (on the clients, it shows Empty).

    I am currently running LMS v7.9.3, r1584993250 on a Mac Mini, running Mac OS X 10.11.6, El Capitan. YouTube Plugin (v0.93.0).

    Here is the report from Console when I run a YouTube search attempt from the Mac Mini LMS Server for "Paul Simon" in the video option(without quotes):





    Marker - Apr 6, 2020, 12:23:32 AM
    [20-04-06 00:26:10.6002] main::init (387) Starting Logitech Media Server (v7.9.3, 1584993250, Tue Mar 24 04:10:26 CET 2020) perl 5.018002 - darwin-thread-multi-2level
    [20-04-06 00:26:10.6001] main::init (387) Starting Logitech Media Server (v7.9.3, 1584993250, Tue Mar 24 04:10:26 CET 2020) perl 5.018002 - darwin-thread-multi-2level
    [20-04-06 00:26:53.2376] Slim::Utils::Misc::msg (1255) Warning: [00:26:53.2370] (
    bless([
    sub { "???" },
    sub { "???" },
    { params => {}, timeout => 15 },
    "GET",
    "https://www.googleapis.com/youtube/v3/search?key=MyKeyReplacedWithThis&maxResults=50&ord er=relevance&part=snippet&q=paul%20simon&regionCod e=US&relevanceLanguage=EN&type=video",
    "403 Forbidden",
    undef,
    undef,
    undef,
    undef,
    undef,
    undef,
    ], "Slim::Networking::SimpleAsyncHTTP"),
    "403 Forbidden",
    ) at /Users/mainuser/Library/Caches/Squeezebox/InstalledPlugins/Plugins/YouTube/API.pm line 169.
    [20-04-06 00:26:53.2379] Plugins::YouTube::API::__ANON__ (170) 403 Forbidden
    [20-04-06 00:26:53.2382] Plugins::YouTube::API::__ANON__ (81) no results
    [20-04-06 00:26:53.5219] 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/mainuser/Library/Caches/Squeezebox/InstalledPlugins/Plugins/YouTube/API.pm line 97.
    ; fh=Slim::Networking::Async::Socket::HTTPS=GLOB(0x7 fc2038630b8)
    [20-04-06 00:27:54.2936] Slim::Utils::Misc::msg (1255) Warning: [00:27:54.2933] (
    bless([
    sub { "???" },
    sub { "???" },
    { params => {}, timeout => 15 },
    "GET",
    "https://www.googleapis.com/youtube/v3/videoCategories?key=MyKeyReplacedWithThis=EN&maxRe sults=50&order=date&part=snippet&regionCode=US",
    "403 Forbidden",
    undef,
    undef,
    undef,
    undef,
    undef,
    undef,
    ], "Slim::Networking::SimpleAsyncHTTP"),
    "403 Forbidden",
    ) at /Users/mainuser/Library/Caches/Squeezebox/InstalledPlugins/Plugins/YouTube/API.pm line 169.
    [20-04-06 00:27:54.2938] Plugins::YouTube::API::__ANON__ (170) 403 Forbidden
    [20-04-06 00:27:54.2940] Plugins::YouTube::API::__ANON__ (81) no results
    [20-04-06 00:27:54.3059] 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/mainuser/Library/Caches/Squeezebox/InstalledPlugins/Plugins/YouTube/API.pm line 97.
    ; fh=Slim::Networking::Async::Socket::HTTPS=GLOB(0x7 fc2038682f0)





    The issue is system wide, affecting all users, and the report is identical for all users - referencing their /Library/Caches/Squeezebox/InstalledPlugins/Plugins/YouTube/API.pm .

    - Issue persists after reboot of LMS Server

    - Issue persists after reboot of Mac Mini running LMS Server

    - Issue persists after removing Youtube plugin and then re-adding it

    - I see no reference to an updated API.pm at https://github.com/philippe44/LMS-YouTube

    - line 97 of my copy of the API.pm is identical to line 97 of the most current listing of the API.pm located at https://github.com/philippe44/LMS-Yo.../plugin/API.pm :

    push @items, @{$results->{items}};


    - I HAVE NOT deleted my Google API Project, and have not generated a new key.

    PLease see the attached screenshot of the search errors listed on Google's API Metrics page.

    Name:  Screen Shot 2020-04-06 at 1.13.30 AM.png
Views: 208
Size:  87.1 KB

    Please find an attached copy of my API.pm.

    Thank you all very much in advance for any assistance which can be provided to resolve this issue.
    Attached Files Attached Files

  3. #753
    Junior Member
    Join Date
    Apr 2012
    Posts
    17
    Quote Originally Posted by Listen Closely View Post
    Greetings,

    Similar issue to sniki, however my region code is set to US and appears to be appropriate.

    When I attempt a search from either http://LMS Server IP address:9000/ or from SqueezePlay on any of the computers I use as clients, the Youtube search yields nothing (on the clients, it shows Empty).

    <snipped>

    - I HAVE NOT deleted my Google API Project, and have not generated a new key.

    <snipped>

    Thank you all very much in advance for any assistance which can be provided to resolve this issue.
    I had empty searches too and FYI I deleted the whole project and created a new one and a new API key and it worked for me.

  4. #754
    Junior Member
    Join Date
    Apr 2012
    Posts
    17

    Enhancement requests

    Hi Philippe-44,

    Thanks for this plugin...it's very useful.

    The following enhancements would be useful to me if you are looking for feedback:

    Display the length of a video in search results (I often look for longer videos to listen to)

    Option to display the video comments under the play window (I realise that one may be more tricky)

    Hope everyone is doing ok out there.

    Cheers, Nick.

  5. #755
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,707
    Quote Originally Posted by nickey View Post
    Hi Philippe-44,

    Thanks for this plugin...it's very useful.

    The following enhancements would be useful to me if you are looking for feedback:

    Display the length of a video in search results (I often look for longer videos to listen to)

    Option to display the video comments under the play window (I realise that one may be more tricky)

    Hope everyone is doing ok out there.

    Cheers, Nick.
    I'm not sure there is an option in LMS to make it display the track duration when listing all the items. You can only have it when you click on a track details
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  6. #756
    Junior Member
    Join Date
    Apr 2012
    Posts
    17
    Quote Originally Posted by philippe_44 View Post
    I'm not sure there is an option in LMS to make it display the track duration when listing all the items. You can only have it when you click on a track details
    Ok, too bad, thanks.

    In reference to my other post yesterday in the LMS section of the forum, if I search for a video using the regular YouTube web page, is there a way I could then inject that video's URL into LMS to have it played directly by the YouTube plugin?

  7. #757
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,707
    Quote Originally Posted by nickey View Post
    Ok, too bad, thanks.

    In reference to my other post yesterday in the LMS section of the forum, if I search for a video using the regular YouTube web page, is there a way I could then inject that video's URL into LMS to have it played directly by the YouTube plugin?
    There is the option in the YT menu to insert a URL
    Last edited by philippe_44; 2020-04-12 at 23:31.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  8. #758
    Junior Member
    Join Date
    Apr 2012
    Posts
    17
    Quote Originally Posted by philippe_44 View Post
    There is the option in the YT menu to insert a URL
    Doh, of course! Thanks. And short of maybe creating a curl script to copy paste it for me, do you see any way I could automate it more elegantly via a script please? (Like is there maybe a file I could append the URL to in the LMS folders?)

  9. #759
    Junior Member
    Join Date
    Apr 2012
    Posts
    17

    Remember position

    Philippe-44, here's another enhancement suggestion (unless you already have a solution?):

    Remember the last play position of each YouTube video.

    It would allow listening to long videos over several sessions without having to remember where you left off and manually repositioning the play cursor.

    Thanks, Nick.

  10. #760
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,707
    Quote Originally Posted by nickey View Post
    Doh, of course! Thanks. And short of maybe creating a curl script to copy paste it for me, do you see any way I could automate it more elegantly via a script please? (Like is there maybe a file I could append the URL to in the LMS folders?)
    You can just use the CLI or HTTP/JSON interface and submit a url youtube://<your url>. When seeing a "youtube" protocol request, LMS knows that it has to send it to the plugin which registered it
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

Posting Permissions

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