Giter Site home page Giter Site logo

lms-youtube's Introduction

LMS-YouTube

Fork of Triode's YouTube plugin for API V3 for Logitech Media Server. See the support thread here: forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3).

Common pitfalls

SSL issues

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. 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 install libio-socket-ssl-perl libnet-ssleay-perl

at any command prompt.

Country for Categories

Keep in mind that UK is not a region code, but GB is.

lms-youtube's People

Contributors

alexanderadam avatar giantorth avatar matzrh avatar mavit avatar mherger avatar mipa87 avatar philippe44 avatar tgenin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lms-youtube's Issues

Sort Youtube playlists alphabetical etc.

Your youtube plugin is so great and daily used since years, thanks a lot!

On youtube we add music we like to a long playlist called "Music". In the remote app Squeezecontrol https://play.google.com/store/apps/details?id=com.angrygoat.android.squeezectrl we then go to "My Apps/Youtube/My Playlists" and there we have all of our playlists on youtube and we need to manually search through a long unsorted list of playlists. The order seems completely random or is using a scheme we don't understand. I was hoping you as the god-like dev of the youtube plugin might easily sort the list comming from the youtube API before handing it over to the ctrl clients. That would be awesome! What do thunk about that?

Better error message when trying to play vorbis/opus stream

I'm not quite sure whether this is possible, but I ran into the vorbis/opus issue and the Squeezebox just showed problem: unable to play file type for $youtube_title. It didn't even show anything about "vorbis" or "opus".
I had to look in the LMS log to find Slim::Player::Song::open (409) Error: Couldn't create command line for ops playback for [youtube://www.youtube.com/v/… and thus finding the reason.

So I guess it would be great if the error message could be improved.

Apart from that the plugin is working flawlessly for me, so thank you so much for maintaining it and your work on LSM things in general! 🙏
Your work is really outstanding!

PS: Do you know what could be missing when this error occurs? I'm using @apnar's Docker image and I thought that all required dependencies should be available?

cannot load player code - JS function 'gr' not found

After searching for a song in the webfrontend and click on play i get an error on my sqzeezebox
radio:

cannot load player code:
Could not find JS function 'gr' at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube
/JSInterp.pm

and no audio output.

example (no playback):

URL: youtube://www.youtube.com/v/dipFMJckZOM
Titel: Vincent (Starry Starry Night) Don McLean

on the other side some songs starts to play, I dont know where the difference is.

example (playback):

URL: youtube://www.youtube.com/v/K3JGxj2rvAs
Titel: Lykke Li (La Vie d'Adèle/La Vida de Adele)

Thanks for updating the youtube plugin (its one of the best functions of the squeezebox)

Integrate SponsorBlock

Hi. It would be awesome if you could integrate the SponsorBlock functionallity into this plugin. They maintain a public list of things like "Non-Music-Segments", which could be automatically skipped when playing songs. The actual categories to skip should then be configurable.

plugin, it doesn't change the song

plugin, it doesn't change the song when I play the playlist. It can be changed. LMS 8.3.1 Logitech Media Server Wersja: 8.3.1 - 1676361197

Screenshot_2023-11-19-13-09-53-150_uk org ngo squeezer

Question: how does this gets renderered on a client?

I was wondering how this works. I have a machine (behind a proxy) that has access to YouTube and was trying to et this to send videos to a uPNP endpoint, but what gets send? The actual video stream, proxied over LMS, or just a http endpoint pointing to the video on youtube? As so far, I have not been able to use YouTube-LMS to watch videos on a Samsung TV or Kodi.

no stream/DASH found

Hi,

Thanks for making this plugin, it is very cool!

It all the sudden stopped working. I keep getting the following lines every time I attempt to play a YT video in LSM:

[21-03-31 00:48:28.3306] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-03-31 00:48:28.8216] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found

I tried create a new project with new creds but no luck.

Youtube plugin version is 0.127.1

Do you have any clue on how to fix this?

On-disk caching

Hi, is there a way to cache the played music locally? We use the plugin extensively in our family and a lot of songs get played very often. I think sometimes the YouTube API is then overwhelmed and it's not working for a while and then starts working again after some time or with another song. It would be great if the stream could be saved locally to disk so that it won't be fetched over and over again.

Youtube plugin error

Hi, since yesterday the LMS Youtube plugin isn't working anymore. The server.log file contains these messages:
[20-05-06 22:15:48.0510] Plugins::YouTube::WebM::ANON (700) could not get codec info: Cannot request non-HTTP URL
[20-05-06 22:15:48.0556] Plugins::YouTube::WebM::ANON (640) could not find start offset.
What is the problem?
Thanks Tom

How to use doesn't match between plugin and forum

Hello
first of all thank for this plugin.
the how to use doesn't match between the pluging configuration inside LMS(not working for me) and what you describe on the forum website(works for me). see attach screen

LMS
Capture-20200430143915-841x131

Forum
Capture-20200430143957-790x357

thanks

Missing install.xml

There's no install.xml file in git. Is this by purpose? After all it should always have the same UUID etc.

Plugin stopped working

The plugin stopped playing any yt song (but search still works).

I'm unable to post this to the plugin-thread on the squeezebox forum because of character restrictions so I'm sending you my debug log here. Hope it helps.

[21-04-01 08:18:47.9340] Slim::Player::StreamingController::_setPlayingState (2377) new playing state PAUSED
[21-04-01 08:18:47.9352] Slim::Player::Source::playmode (95) 00:04:20:1f:16:50: Current playmode: pause
[21-04-01 08:18:48.0803] Slim::Player::StreamingController::playerEndOfStream (2286) 00:04:20:1f:16:50
[21-04-01 08:18:55.7090] Slim::Player::StreamingController::stop (2117) 00:04:20:1f:16:50
[21-04-01 08:18:55.7095] Slim::Player::StreamingController::_Stop (610) Song queue is now 100
[21-04-01 08:18:55.7097] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:18:55.7097] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:18:55.7099] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 
[21-04-01 08:18:55.7150] Slim::Player::StreamingController::stop (2117) 00:04:20:1f:16:50
[21-04-01 08:18:55.7151] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 
[21-04-01 08:18:55.7155] Slim::Player::StreamingController::play (2120) 00:04:20:1f:16:50
[21-04-01 08:18:55.7164] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:18:55.7166] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:18:55.7169] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:18:55.7175] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:18:55.7181] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:18:55.7198] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:18:56.2074] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:18:56.2076] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:18:56.2086] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:18:56.2088] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 0
[21-04-01 08:19:08.1248] Slim::Player::StreamingController::play (2120) 00:04:20:1f:16:50
[21-04-01 08:19:08.1253] Slim::Player::StreamingController::_Stop (610) Song queue is now 0
[21-04-01 08:19:08.1255] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:19:08.1255] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:19:08.1257] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:19:08.1259] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:19:08.1264] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:19:08.1275] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:19:08.4697] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:19:08.4699] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:19:08.4708] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:19:08.4710] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 0
[21-04-01 08:19:59.0151] Slim::Player::StreamingController::stop (2117) 00:04:20:1f:16:50
[21-04-01 08:19:59.0152] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 
[21-04-01 08:19:59.0157] Slim::Player::StreamingController::play (2120) 00:04:20:1f:16:50
[21-04-01 08:19:59.0163] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:19:59.0164] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:19:59.0165] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/_dK2tDK9grQ
[21-04-01 08:19:59.0167] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:19:59.0303] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/_dK2tDK9grQ
[21-04-01 08:19:59.0312] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/_dK2tDK9grQ
[21-04-01 08:19:59.0327] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::playlistJumpCommand]: [Illegal division by zero at /usr/share/perl5/Slim/Player/Source.pm line 47.
]
[21-04-01 08:19:59.0736] Slim::Display::Display::curLines (487) Error: bad lines function: Illegal division by zero at /usr/share/perl5/Slim/Player/Source.pm line 47.
[21-04-01 08:19:59.0739] Slim::Display::Graphics::render (113) Error: bad lines function - non hash based display formats are deprecated
[21-04-01 08:19:59.5312] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:19:59.5314] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/_dK2tDK9grQ
[21-04-01 08:19:59.5322] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:19:59.5325] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 0
[21-04-01 08:20:16.8004] Slim::Player::StreamingController::stop (2117) 00:04:20:1f:16:50
[21-04-01 08:20:16.8006] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 
[21-04-01 08:20:16.8010] Slim::Player::StreamingController::play (2120) 00:04:20:1f:16:50
[21-04-01 08:20:16.8016] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:20:16.8016] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:20:16.8018] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:20:16.8020] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:20:16.8157] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:20:16.8166] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:20:16.8180] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::playlistJumpCommand]: [Illegal division by zero at /usr/share/perl5/Slim/Player/Source.pm line 47.
]
[21-04-01 08:20:17.1572] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:20:17.1574] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:20:17.1581] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:20:17.1582] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 0
[21-04-01 08:21:07.5265] main::init (387) Starting Logitech Media Server (v7.9.3, 1597753178, Sun Aug 23 19:21:22 CEST 2020) perl 5.026001 - x86_64-linux-gnu-thread-multi
[21-04-01 08:21:11.8062] Slim::Player::TranscodingHelper::loadConversionTables (49) Loading conversion config files...
[21-04-01 08:21:15.3182] Plugins::CustomScan::Scanner::executeSQLFile (522) Couldn't open: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/CustomScan/SQL/SQLite/dbupgrade_valuesort.sql : No such file or directory
[21-04-01 08:21:15.3185] Plugins::CustomScan::Scanner::executeSQLFile (522) Couldn't open: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/CustomScan/SQL/SQLite/dbupgrade_extravalue.sql : No such file or directory
[21-04-01 08:21:15.3187] Plugins::CustomScan::Scanner::executeSQLFile (522) Couldn't open: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/CustomScan/SQL/SQLite/dbupgrade_valuetype.sql : No such file or directory
[21-04-01 08:21:17.0852] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/-hRuzrbhPKE
[21-04-01 08:21:17.0855] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 0
[21-04-01 08:21:17.0861] Slim::Player::Squeezebox::reconnect (88) 00:04:20:22:b9:11 forcing stop on pseudo-reconnect
[21-04-01 08:21:17.1654] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:21:17.1656] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 0
[21-04-01 08:21:17.1669] Slim::Player::StreamingController::playerActive (2013) 00:04:20:1f:16:50 player already active: 00:04:20:1f:16:50
[21-04-01 08:21:17.1672] Slim::Player::StreamingController::play (2120) 00:04:20:1f:16:50
[21-04-01 08:21:17.1677] Slim::Player::StreamingController::_Stop (610) Song queue is now 0
[21-04-01 08:21:17.1678] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:21:17.1679] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:21:17.1680] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:21:17.1682] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:21:17.1687] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:21:17.1690] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:21:17.1711] Slim::Player::StreamingController::playerActive (2013) 00:04:20:1f:16:50 player already active: 00:04:20:1f:16:50
[21-04-01 08:21:17.1712] Slim::Player::Squeezebox::reconnect (80) 00:04:20:1f:16:50 restaring play on pseudo-reconnect at 0
[21-04-01 08:21:17.1713] Slim::Player::StreamingController::playerReconnect (2092) 00:04:20:1f:16:50
[21-04-01 08:21:17.1721] Slim::Player::StreamingController::_Stop (610) Song queue is now 0
[21-04-01 08:21:17.1722] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:21:17.1723] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:21:17.1725] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:21:17.1728] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:21:17.1731] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:21:17.1911] Slim::Player::Boom::setLineInLevel (444) Setting line in level to 50
[21-04-01 08:21:17.2313] Slim::Player::Song::new (107) index 0 -> deezer://30751.dzr
[21-04-01 08:21:17.2317] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 0
[21-04-01 08:21:17.2322] Slim::Player::Squeezebox::reconnect (88) 00:04:20:18:15:57 forcing stop on pseudo-reconnect
[21-04-01 08:21:17.2524] Slim::Player::Song::new (107) index 0 -> file:///c/media/Music/c/Marius%20Muller-Westernhagen/Westernhagen%20Live,%20Disc%201/03%20Marius%20Muller-Westernhagen%20-%20Weist%20du,%20Das%20Ich%20Glucklich%20Bin.flac
[21-04-01 08:21:17.2526] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 0
[21-04-01 08:21:17.2540] Slim::Player::Squeezebox::reconnect (88) 00:04:20:1e:7f:59 forcing stop on pseudo-reconnect
[21-04-01 08:21:17.2557] Slim::Player::Boom::setLineInLevel (444) Setting line in level to 50
[21-04-01 08:21:17.2639] Slim::Player::Song::new (107) index 4 -> youtube://www.youtube.com/v/1ZYbU82GVz4
[21-04-01 08:21:17.2642] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 4
[21-04-01 08:21:17.2648] Slim::Player::Squeezebox::reconnect (88) 00:04:20:27:da:2d forcing stop on pseudo-reconnect
[21-04-01 08:21:18.1126] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:21:18.1128] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/2MiXKO-seWY
[21-04-01 08:21:18.1138] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:21:18.1140] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 0
[21-04-01 08:21:18.1257] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:21:29.1046] Slim::Player::StreamingController::stop (2117) 00:04:20:1f:16:50
[21-04-01 08:21:29.1048] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 
[21-04-01 08:21:29.1065] Slim::Player::StreamingController::stop (2117) 00:04:20:1f:16:50
[21-04-01 08:21:29.1066] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 
[21-04-01 08:21:29.1070] Slim::Player::StreamingController::play (2120) 00:04:20:1f:16:50
[21-04-01 08:21:29.1076] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:21:29.1077] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:21:29.1079] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:21:29.1082] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:21:29.1086] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:21:29.1094] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:21:29.5437] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:21:29.5440] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/JGwWNGJdvx8
[21-04-01 08:21:29.5453] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:21:29.5456] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 0
[21-04-01 08:22:04.6369] Slim::Player::TranscodingHelper::getConvertCommand2 (445) Matched: flc->flc via: -
[21-04-01 08:22:04.6427] Slim::Player::TranscodingHelper::getConvertCommand2 (442) Error: Didn't find any command matches for type: mp3
[21-04-01 08:22:17.1053] Slim::Player::StreamingController::stop (2117) 00:04:20:1f:16:50
[21-04-01 08:22:17.1054] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 
[21-04-01 08:22:17.1061] Slim::Player::StreamingController::play (2120) 00:04:20:1f:16:50
[21-04-01 08:22:17.1068] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:22:17.1069] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:22:17.1071] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/VJ2rlci9PE0
[21-04-01 08:22:17.1073] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:22:17.1211] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/VJ2rlci9PE0
[21-04-01 08:22:17.1221] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/VJ2rlci9PE0
[21-04-01 08:22:17.1531] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::playlistJumpCommand]: [Illegal division by zero at /usr/share/perl5/Slim/Player/Source.pm line 47.
]
[21-04-01 08:22:17.1923] Slim::Display::Display::curLines (487) Error: bad lines function: Illegal division by zero at /usr/share/perl5/Slim/Player/Source.pm line 47.
[21-04-01 08:22:17.1924] Slim::Display::Graphics::render (113) Error: bad lines function - non hash based display formats are deprecated
[21-04-01 08:22:17.5546] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:22:17.5548] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/VJ2rlci9PE0
[21-04-01 08:22:17.5555] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:22:17.5558] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 0
[21-04-01 08:22:29.2034] Slim::Player::StreamingController::stop (2117) 00:04:20:1f:16:50
[21-04-01 08:22:29.2036] Slim::Player::StreamingController::resetSongqueue (1796) Song queue is now 
[21-04-01 08:22:29.2041] Slim::Player::StreamingController::play (2120) 00:04:20:1f:16:50
[21-04-01 08:22:29.2047] Slim::Player::StreamingController::_setPlayingState (2377) new playing state STOPPED
[21-04-01 08:22:29.2048] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:22:29.2049] Slim::Player::Song::new (107) index 0 -> youtube://www.youtube.com/v/_dK2tDK9grQ
[21-04-01 08:22:29.2051] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-04-01 08:22:29.2054] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/_dK2tDK9grQ
[21-04-01 08:22:29.2062] Slim::Player::Song::getNextSong (228) youtube://www.youtube.com/v/_dK2tDK9grQ
[21-04-01 08:22:29.5410] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:22:29.5412] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/_dK2tDK9grQ
[21-04-01 08:22:29.5419] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
[21-04-01 08:22:29.5422] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 0
[21-04-01 08:29:50.3878] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:31:33.8986] Plugins::YouTube::ProtocolHandler::__ANON__ (448) no stream/DASH found
[21-04-01 08:32:11.2359] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::playlistJumpCommand]: [Illegal division by zero at /usr/share/perl5/Slim/Player/Source.pm line 47.
]
[21-04-01 08:32:11.6018] Plugins::YouTube::ProtocolHand

OAUTH not working

  • I created a new project on the google developer console,
  • gave it access to the youtube API 3.0,
  • activated it,
  • copied its client ID to the plugin config
  • created OAUTH credentials and added the client ID and client key to the plugin config page
  • Finally I tried to connect the plugin to youtube, entered the eight letter code to the OAUTH screen, google said everything was find and dandy, and that I should return to my device.
  • I clicked "refesh" ("Aktualisieren")
    grafik next to "Oauth2 Anmeldung", hoping that this would prompt the plugin to retrieve the authorisation, however, this didn't cause any auth data to be written to the client config /var/lib/squeezeboxserver/prefs/plugin/youtube.prefs

Consequently, when I try to retrieve my subscriptions, the plugin complains that OAUTH config data is missing, and so, the subscriptions are not being retrieved.

Youtube Music only version?

Is there any chance this plugin could be adapted to become a Youtube Music (premium access) app with a focus on music over videos?

Ideally this would include thumbnails for playlists etc

The spotify plugin has great API support and looks awesome, would love a Youtube Music plugin.

Thanks
Dave

settings

Trying this out but all I get is the following:

Missing YouTube API key (see settings)

There is no location on the plugins page however for the settings.

youtube plugin does not work anymore

Well,
on a LMS version 8.4.1, youtube plugin version 0.210
When trying to play any song i get the image, the duration af the song like 3:30, but the song doesn't play and stay at 0:00/3:30.
log line related are the following :
[24-02-21 15:41:36.0300] Plugins::YouTube::WebM::ANON (690) could not get codec info 403 Forbidden
[24-02-21 15:41:36.1482] Plugins::YouTube::WebM::ANON (636) could not find start offset 403 Forbidden
[24-02-21 15:45:41.4619] Plugins::YouTube::WebM::ANON (690) could not get codec info 403 Forbidden
[24-02-21 15:45:41.5446] Plugins::YouTube::WebM::ANON (636) could not find start offset 403 Forbidden

youtube access API key is there and haven't change....
any help will be most welcome

Couldn't load Plugins::YouTube::Plugin

Loading plugin in Logitech Media Server Version: 7.9.0 - 1487144914 @ Wed Feb 15 08:11:18 UTC 2017 fails:

Slim::bootstrap::tryModuleLoad (286) Warning: Module [Plugins::YouTube::Plugin] failed to load:
Base class package "IO::Socket::SSL" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available in @inc (@inc contains: /var/lib/squeezeboxserver/cache/InstalledPlugins /usr/share/squeezeboxserver/CPAN/arch/5.20/arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.20/arm-linux-gnueabihf-thread-multi-64int/auto /usr/share/squeezeboxserver/CPAN/arch/5.20.2/arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.20.2/arm-linux-gnueabihf-thread-multi-64int/auto /usr/share/squeezeboxserver/CPAN/arch/5.20/arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.20/arm-linux-gnueabihf-thread-multi-64int/auto /usr/share/squeezeboxserver/CPAN/arch/arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.20 /usr/share/squeezeboxserver/lib /usr/share/squeezeboxserver/CPAN /usr/share/squeezeboxserver /usr/share/squeezeboxserver/CPAN /usr/share/squeezeboxserver /usr/sbin /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .).
at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 2.
BEGIN failed--compilation aborted at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 2.
Compilation failed in require at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/Plugin.pm line 20.
BEGIN failed--compilation aborted at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/Plugin.pm line 20.
Compilation failed in require at (eval 887) line 1.
BEGIN failed--compilation aborted at (eval 887) line

Logitech Media Server Version: 7.9.0 - 1487144914 @ Wed Feb 15 08:11:18 UTC 2017
Hostname: raspberrypi
IP-Adresse des Servers: 192.168.11.114
Server-HTTP-Portnummer: 9000
Betriebssystem: Debian - DE - utf8
Plattformarchitektur: armv7l-linux
Perl-Version: 5.20.2 - arm-linux-gnueabihf-thread-multi-64int
Audio::Scan: 0.95
Datenbankversion: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Anzahl erkannter Player: 1

Bitrate problem

Hello Philippe, I have this problem with your plugin. I installed Logitech Media Server from the official website, on a fresh Windows 10 PRO. I activated 3rd party plugins, selected yours and I configured the connection to Youtube account. So finally I can see my playlists and I can listen to a lot of content, but only spoken words. I would like to hear also some music through my Squeezebox radio I have at home. The problem is that most of the songs I try to play, play only a few seconds. Then I see re-buffering on the screen, music starts after some pause and that repeats all the time. I discovered, that when I search in LMS for some low bittrate music, I can play it. So I guess the problem is that LMS gets from youtube too high bitrate which the wi-fi radio is not capable to process. Or I have something wrong set in the configuration. In fact I do not know where to look and what to set. But maybe there is something missing we could set in the plugin settings in LMS. Can you give me some advice or can that be fixed some way? Thank you for reading this! The plugin is, otherwise, very handy and the only of its kind I found and I would really like to use it fully. :)

Videos no longer render on MacOS

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

no stream/DASH found

Currently getting Plugins::YouTube::ProtocolHandler::__ANON__ (462) no stream/DASH found for any item. It has previously been working wonderfully.

Platform:

  • Ubuntu 22.04.3 LTS
  • logitechmediaserver 8.3.1
  • plugin 0.161
[23-08-24 17:51:24.1746] Plugins::YouTube::ProtocolHandler::__ANON__ (462) no stream/DASH found

Happy to provide further details if useful! Thanks!

Youtube music does not start

Hi all,

since a couple of weeks I do have an issue with playing music from youtube. The search is working fine, but I cannot play a song. According to LMS it is starting to play, but after 2-5 seconds it stops.
In the LMS server log following error is being listed:
[19-08-28 20:54:41.9409] Slim::Player::Song::open (410) Error: Couldn't create command line for ops playback for [youtube://www.youtube.com/v/2S7BvkDN0hw]

I'm using LMS version 7.9.2.
The youtube plugin version is v0.90.0, but above problem did already occur with the previous version.
The LMS is running on a Raspberry in conjunction with Max2Play.

Any idea on what might cause this issue?

Thanks,
Christoph

strip whitespaces at the beginning/end of "YouTube API Access Key."

First of all, thank you for working on this plugin. It's super useful :-)

I see connection failures in my server log and it seems as if the API key contains whitespaces that would ideally be stripped by the plugin. Looking back at the plugin settings it actually looks as though I did not even enter whitespace in the first place - which is slightly odd.

Anyhow, I am wondering if it would make sense to strip the api either when receiving it from the input form or in line 153 where the error shows up (see below).

[17-09-02 14:01:03.0733] Slim::Utils::Misc::msg (1244) Warning: [14:01:03.0726] (
  bless([
    sub { "???" },
    sub { "???" },
    { params => {}, timeout => 15 },
    "GET",
    "https://www.googleapis.com/youtube/v3/videos?key= XY-REPLACING-THE-ACTUAL-KEY84 &id=xd-replaced-id-as-well--foo&maxResults=50&part=snippet%2CcontentDetails&regionCode=DE",
    "Connect timed out: ",
    undef,
    undef,
    undef,
    undef,
    undef,
    undef,
  ], "Slim::Networking::SimpleAsyncHTTP"),
  "Connect timed out: ",
) at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/API.pm line 153.
[17-09-02 14:01:03.0741] Plugins::YouTube::API::__ANON__ (154) Connect timed out: 

Could not find JS function 'Zq'

some time in the last 24 hours some youtube videos no longer play using the plugin.
on my squeezebox touch screen i see the message:

cannot load player code: Could not find JS function 'Zq' at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/JSInterp.pm line 394.

youtube url: https://www.youtube.com/watch?v=rNMevNpavlY

Logitech Media Server Version: 7.9.0 - 1415230120 @ Thu Nov 6 03:56:16 UTC 2014
Operating system: Debian - EN - utf8
Platform Architecture: i686-linux
Perl Version: 5.20.1 - i686-linux-gnu-thread-multi-64int

Player Model: Squeezebox Touch
Player Type: fab4
Firmware: 7.8.0-r16754

No sound

Hi
I just installed LMS on NAS server,
Play other thing including online Tidal/offline files OK
Set up everything with
YouTube API access key:OK
Searching OK
Play OK, but no sound output?

sources for 0.144.2

Hello @philippe44 - thank you for continuing to maintain this LMS plugin. My question is regarding where to pull the latest sources. In this repo, I see 0.144.1, but within LMS the installed version of the plugin is 0.144.2, and the InstalledPlugins/Plugins/YouTube/CHANGELOG is newer than what is currently in CHANGELOG:

0.144.2
 - update CZ transation
 - fix JS signature

I can copy from the installed plugin back to my fork, but I wanted to ask if there is a different upstream repo for the latest sources, pull-requests, etc.

Playing a saved playlist doesn't always work reliable

Hi,

thx for your great plugin. I noticed the following Problem.

I have created a Youtube Playlist of a few pretty long videos and saved them in my account and also saved this as a Favorite in the LMS.
Now if go to the Youtube Plugin, to the saved Playlists and want to play the whole Playlist, sometimes it doesn't load all tracks. If that happens i can clear the current playqueue and try to play the playlist again, but nothing happens.

When i browse into the playlist and just select one track it asks me whether i want to play from the start or where i stopped last. Once i select something there it starts playing. Clear the playqueue again and try to add the whole playlist. This time it just adds the Video which i just played, but no other video.

Listing to the LMS notifications using telnet i get the following:

dc%3A44%3A6d%3Acb%3Acf%3Aae power 0
dc%3A44%3A6d%3Acb%3Acf%3Aae prefset server power 0
dc%3A44%3A6d%3Acb%3Acf%3Aae menustatus ARRAY(0x55e99f063e98) add dc%3A44%3A6d%3Acb%3Acf%3Aae
dc%3A44%3A6d%3Acb%3Acf%3Aae playlist loadtracks listref ARRAY(0x55e99f3ce948) index%3A0
dc%3A44%3A6d%3Acb%3Acf%3Aae playlist stop
dc%3A44%3A6d%3Acb%3Acf%3Aae playlist jump
dc%3A44%3A6d%3Acb%3Acf%3Aae power 1 1
dc%3A44%3A6d%3Acb%3Acf%3Aae prefset server power 1
dc%3A44%3A6d%3Acb%3Acf%3Aae menustatus ARRAY(0x55e99f4905f0) add dc%3A44%3A6d%3Acb%3Acf%3Aae
dc%3A44%3A6d%3Acb%3Acf%3Aae newmetadata
dc%3A44%3A6d%3Acb%3Acf%3Aae playlist open youtube%3A%2F%2Fwww.youtube.com%2Fv%2FxoeTL50KzI8
dc%3A44%3A6d%3Acb%3Acf%3Aae playlist open youtube%3A%2F%2Fwww.youtube.com%2Fv%2FxoeTL50KzI8
dc%3A44%3A6d%3Acb%3Acf%3Aae playlist newsong Vom%20Anfang%20an%20wiedergeben 0

What i want to be able to at the end is to play the playlist (from start) using the LMS favorites, but also over the CLI by using the stored playlist URL (from the LMS favorites)

no stream/DASH found

First of all this plugin is fantastic for the streams that work. It's so fast! Unfortunately on every (copyrighted?) "song" does give me this error, while some other vlog streams seem to work.
I run LMS 7.9.3 on picoreplayer. When I enable logging on the not working streams I see:
Plugins::YouTube::ProtocolHandler::ANON (422) no stream/DASH found

Plugin not working

I use LMS (8.1.1 - 1610364019) with youtube plugin (0.142.1) on a picoreplayer (v6.1.0). for about 2 weeks i can no longer play my youtube playlists. the player runs through the entire list up to the last song without playing anything. I removed the plugin and installed it again, unfortunately without success. the server.log file shows the message "Plugins :: YouTube :: ProtocolHandler :: __ ANON__ (460) no stream / DASH found". is the plugin responsible for this, or is it an issue with the picoreplayer (keyword SSL issues)? it would be great if you have a solution for it. for me the plugin is one of the best parts of LMS. Thanks!

Lecture mais pas de son

Bonjour Philippe,

J'ai ajouté api et clef oauth 2.0 au plugin, mais quand je lis une viédo, aucun son ne sort sur les enceintes.

j'ai tenté la ligne de commande sudo apt install libio-socket-ssl-perl libnet-ssleay-perl, mais rien n'y fait.

De plus je ne peux pas arreter la video de se lire quand elle est lancé.

Je suis avec LMS version 7.9.3 à traver l'os max2play

Merci par avance,
P1GOU1

Playlist stalls

In order for this forum post not to be buried I am posting my issue her again:

I have a problem with playing long playlists in YT:
In irregular intervals, probably btn 10 to 100 songs LMS stops playing the playlist:

One song has fully finished, LMS still shows the pause sign as if it was still playing, and the time elapsed is either at the length of the song or flipping between one second before and the end.
The corresponding long entries look like this:

[24-02-22 12:41:03.0396] Plugins::YouTube::ProtocolHandler::getStreamJSON (533) found itag: 250
[24-02-22 12:41:03.0401] Plugins::YouTube::ProtocolHandler::getStreamJSON (538) matching format 250
[24-02-22 12:41:03.0405] Plugins::YouTube::ProtocolHandler::getStreamJSON (533) found itag: 251
[24-02-22 12:41:03.0410] Plugins::YouTube::ProtocolHandler::getStreamJSON (538) matching format 251
[24-02-22 12:41:03.0421] Plugins::YouTube::ProtocolHandler::getStreamJSON (566) candidate itag: 251, url/cipher: s=l2JI2JfQdSswRAIgKphL6Q7ysF-gMo6amALMzH8lj_JaJeWA28NiIiaxkx4CIEFXxEPi74ee6ZnwgO-IjymkWAuTcAbOyZoJCoyigqoA&sp=sig&url=https://rr3---sn-uxaxq5u5-4qie.googlevideo.com/videoplayback%3Fexpire%3D1708623662%26ei%3DzjLXZYL9F46li9oPqKi1gAo%26ip%3D185.162.220.252%26id%3Do-AC1w1IFliHzOmNHO16PWDomAZehFVW-645UqYxL5p1YW%26itag%3D251%26source%3Dyoutube%26requiressl%3Dyes%26xpc%3DEgVo2aDSNQ%253D%253D%26mh%3DLi%26mm%3D31%252C29%26mn%3Dsn-uxaxq5u5-4qie%252Csn-4g5ednsd%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D3%26pcm2cms%3Dyes%26pl%3D22%26initcwndbps%3D1925000%26spc%3DUWF9f-tPWXXkRRbaifpsnqI3V8EO6QCCdDRLEAw8kf_Ru0w%26vprv%3D1%26svpuc%3D1%26mime%3Daudio%252Fwebm%26ns%3D06v9lSWa6KkfeQ1p78p5upkQ%26gir%3Dyes%26clen%3D5106736%26dur%3D294.941%26lmt%3D1605406344999971%26mt%3D1708601584%26fvip%3D1%26keepalive%3Dyes%26fexp%3D24007246%26c%3DWEB%26sefc%3D1%26txp%3D1311224%26n%3DQNht-d6ykB9aCUGLq%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Citag%252Csource%252Crequiressl%252Cxpc%252Cspc%252Cvprv%252Csvpuc%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAPTiJQcwRQIhAOrTOPcgbSCVEEchHLZHtl9yc4sfGVH2YPJXQ1A8Z2WLAiB3gNbQb-sSyqdzltzmwz_VcYsJPrJ8Y8Jr69pKo4Oq4w%253D%253D
[24-02-22 12:41:03.0427] Plugins::YouTube::ProtocolHandler::getStreamJSON (567) candidate ops sig l2JI2JfQdSswRAIgKphL6Q7ysF-gMo6amALMzH8lj_JaJeWA28NiIiaxkx4CIEFXxEPi74ee6ZnwgO-IjymkWAuTcAbOyZoJCoyigqoA encrypted 1
[24-02-22 12:41:03.5094] Plugins::YouTube::WebM::__ANON__ (690) could not get codec info 403 Forbidden
[24-02-22 12:41:03.5105] Plugins::YouTube::ProtocolHandler::close (187) end of streaming for youtube://www.youtube.com/v/qIC1-GTHISo
[24-02-22 12:41:03.5112] Plugins::YouTube::ProtocolHandler::close (187) end of streaming for youtube://www.youtube.com/v/qIC1-GTHISo
[24-02-22 12:41:03.5145] Plugins::YouTube::ProtocolHandler::new (130) url: https://rr3---sn-uxaxq5u5-4qie.googlevideo.com/videoplayback?expire=1708623662&ei=zjLXZYL9F46li9oPqKi1gAo&ip=185.162.220.252&id=o-AC1w1IFliHzOmNHO16PWDomAZehFVW-645UqYxL5p1YW&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Li&mm=31%2C29&mn=sn-uxaxq5u5-4qie%2Csn-4g5ednsd&ms=au%2Crdu&mv=m&mvi=3&pcm2cms=yes&pl=22&initcwndbps=1925000&spc=UWF9f-tPWXXkRRbaifpsnqI3V8EO6QCCdDRLEAw8kf_Ru0w&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=06v9lSWa6KkfeQ1p78p5upkQ&gir=yes&clen=5106736&dur=294.941&lmt=1605406344999971&mt=1708601584&fvip=1&keepalive=yes&fexp=24007246&c=WEB&sefc=1&txp=1311224&n=QNht-d6ykB9aCUGLq&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=APTiJQcwRQIhAOrTOPcgbSCVEEchHLZHtl9yc4sfGVH2YPJXQ1A8Z2WLAiB3gNbQb-sSyqdzltzmwz_VcYsJPrJ8Y8Jr69pKo4Oq4w%3D%3D&sig=AJfQdSswRAIgKphL6Q7ysF-gMo6am2LMzH8lj_JaJeWAI8Ailiaxkx4CIEFXxEPi74ee6ZnwgO-IjymkWAuTcAbOyZoJCoyigqoN offset: 0
[24-02-22 12:41:03.8175] Plugins::YouTube::WebM::__ANON__ (636) could not find start offset 403 Forbidden
[24-02-22 12:41:03.8187] Plugins::YouTube::ProtocolHandler::__ANON__ (154) starting from offset
[24-02-22 12:44:46.9572] Plugins::YouTube::ProtocolHandler::canDoAction (91) action=stop
[24-02-22 12:44:46.9627] Plugins::YouTube::ProtocolHandler::close (187) end of streaming for youtube://www.youtube.com/v/_hJda31yQjo
[24-02-22 12:44:46.9651] Plugins::YouTube::ProtocolHandler::close (187) end of streaming for youtube://www.youtube.com/v/_hJda31yQjo
[24-02-22 12:44:46.9726] Plugins::YouTube::ProtocolHandler::getMetadataFor (850) updating thumbnail cache with hires https://i.ytimg.com/vi/_hJda31yQjo/maxresdefault.jpg
[24-02-22 12:44:46.9804] Plugins::YouTube::ProtocolHandler::getNextTrack (380) next track id: _hJda31yQjo url: http://www.youtube.com/watch?v=_hJda31yQjo master: youtube://www.youtube.com/v/_hJda31yQjo

Playback stops after __ANON__ (154) starting from offset

and when I press >> (fwd) the next song plays and the log continues with canDoAction (91) action=stop

Since I started tracking the issue every stalled playlist playback by the YouTube plugin was associated with the same log entries

[24-02-26 08:14:16.0609] Plugins::YouTube::WebM::__ANON__ (690) could not get codec info 403 Forbidden
[24-02-26 08:14:16.3646] Plugins::YouTube::WebM::__ANON__ (636) could not find start offset 403 Forbidden

Error : No player url to unobfuscate signature

Hi philippe44,

When I tried to play this youtube file get this error message :

Plugins::YouTube::ProtocolHandler::getSignature (786) no player url to unobfuscate signature

I successfully play AAC file but not the Youtube Format file. My setup is :

  • sox (14.4.2+git20190427-1)
  • Logitech Media Server (v8.1.1), tested with version 8.2, same issue.
  • Raspberry armv7l running Debian buster.
  • The plug-in version is 0.140.1

I cannot determine if it's codec related but I used to play this file often without any issue on the same computers.

Hope you can point me the right direction. Regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.