Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 10 123 ... LastLast
Results 1 to 10 of 708

Hybrid View

  1. #1
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,262

    ANNOUNCE: YouTube Plugin (API v3)

    The YouTube plugin thread is long and I cannot edit the initial post as it belongs to Triode. I've made a lot of changes since I started to maintain it so I think its better to start a new thread, as its difficult to find relevant information in the initial one.

    The stable version is in the 3rd party plugins, but if you want the dev version, add the following repository
    Code:
    dev: http://downloads.sourceforge.net/project/lms-youtube/dev/repo-sf.xml
    You *need* a YouTube API key, so either find somebody that gives you one or follow these steps

    - using your gmail account
    - Goto https://console.developers.google.com
    - Click: Create Project
    - Name the project. Example: YouTube-API-Key-Project
    - Leave Organization Blank
    - Click Create
    - Once at your project dashboard, in the APIs box, click: Go to APIs Overview
    - In the APIs & Services Dashboard, click: Enable APIs and Services
    - In the API Library, search for "youtube" and click: YouTube Data API v3
    - In the YouTube Data API v3 screen, click: ENABLE
    - In the YouTube Data API v3 Overview, click: CREATE CREDENTIALS
    - Under "Which API are you using?" choose: YouTube Data API v3
    - Under "Where will you be calling the API from?" choose: Web browser (Javascript)
    - Under "What data will you be accessing?" choose: Public data
    - Then click "What credentials do I need?" button.
    - You should now see your API key. Copy it to your clipboard.
    - Click the link: "Restrict key"
    - Under "API restrictions" select Restrict key, and check "YouTube Data API v3"
    - Click Save
    - Return to the YouTube plugin and paste your key, making sure there are no preceeding or trailing spaces in what you paste.

    This plugin *requires* SSL so make sure it's installed on your LMS server. Not a problem for Windows, OSX, most Linux x86, Raspberry pi, Cubie, Odroid and others that use a Debian-based, but can be problematic with some NAS. I don't have a perfect guide, so please refer to your NAS forum, but most of the recent NAS firmware update include SSL as well, so that might be all that is required.

    Other than that, Perl must have SSL support enabled, which again is available in all recent distribution and LMS versions (I think). But in case of problem and for Debian-ish Linux, you can try "sudo apt-get install libio-socket-ssl-perl libnet-ssleay-perl" at any command prompt. Here is as well the link to the original thread http://forums.slimdevices.com/showth...l=1#post631449

    Another note regarding the "Country for Categories". I've seen a lot of people changing it to UK and complaining that they've changed nothing but the plugin does not work. So, 'UK' is *not* a region code, but 'GB' is. Not my decision https://www.worldatlas.com/aatlas/ctycodes.htm
    Last edited by philippe_44; 2019-05-17 at 11:35.
    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

  2. #2
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    14,684
    Too cool.
    So many thanks again that you are keeping this invaluable plugin alive!
    :thumbsup:
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

  3. #3
    Member srasher's Avatar
    Join Date
    Jun 2006
    Location
    Bochum, Germany
    Posts
    85
    Quote Originally Posted by pippin View Post
    Too cool.
    So many thanks again that you are keeping this invaluable plugin alive!
    :thumbsup:
    +1
    "The only word I know is 'Grunt' - and I can't spell it" (R.I.P. D.A.)

  4. #4
    Senior Member SlimChances's Avatar
    Join Date
    Apr 2005
    Posts
    1,597
    Yes Thanks +1
    • Logitech Media Server Version: 7.9.2 - 1578996832 @ Tue Jan 14 12:15:02 CET 2020
    • Operating system: Debian - EN - utf8
    • Platform Architecture: x86_64-linux
    • Perl Version: 5.26.1 - x86_64-linux-gnu-thread-multi
    • Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)





    One SB Touch connected by Ethernet - Denon AVR -1912 Receiver, Paradigm 4.1 speakers
    SB Classic connected by Optical to FX Audio D802C amp and Sinclair bookshelf speakers
    Two SB Radios wireless

  5. #5

    Works for me

    This is working for me on my picoreplayer running LMS. Great work.

  6. #6
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    3,376

    Working well here ..

    .. on my RPi3/Max2play/LMS7.9, thank you Phillipe.
    Server - LMS 8.0.0 Pi4B 4GB/Flirc case/pCP 6.0.0-b7 18K library, playlists & LMS cache on SSD (ntfs)
    Study - Pi3B+/pCP 5.0.0/pi screen/HiFiBerry DAC+/jivelite,
    Lounge - Pi2/pCP 5.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Squeezebox Boom
    Garage - Pi3B/Pi screen/HiFiBerry DAC+/pCP 5.0.0 > Edifier R980T

    Spares - 2xTouch, 1xSB3, 1xRadio, 6xRPi

  7. #7
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,262

    ANNOUNCE: YouTube Plugin (API v3)

    You can try to see what's going wrong with SSL and Perl associated part ... or move to a recent version of picoreplayer that will likely work out of the box -or- have you updated max2play to its latest version?
    Last edited by philippe_44; 2016-09-04 at 06:02.
    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. #8
    Have installed the latest plugin and entered the API key. However, all the search boxes return Empty? If I choose recently played this works and plays the audio through my SBT. What am I doing wrong with the search choices?

  9. #9
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,262
    Quote Originally Posted by theadmans View Post
    Have installed the latest plugin and entered the API key. However, all the search boxes return Empty? If I choose recently played this works and plays the audio through my SBT. What am I doing wrong with the search choices?
    Can you say precisely how you do your search and give an example of a search? Only webm files are supported, so in case a video is not encoded in that format, it can be played
    Last edited by philippe_44; 2016-09-26 at 21:10.
    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

  10. #10
    Quote Originally Posted by philippe_44 View Post
    Can you say precisely how you do your search and give an example of a search? Only webm files are supported, so in case a video is not encoded in that format, it can be played
    ...hi philippe - OK I find all the different types of search box a bit confusing (not sure about the differences between them). However, I have just tried Youtube Search (everything) and typed in beatles - but get empty as the result. I picked the beatles as something I assume would return some results. BTW I am running LMS 7.7.5 on a Windows 7 PC.

Posting Permissions

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