Home of the Squeezebox™ & Transporter® network music players.
Page 100 of 107 FirstFirst ... 50909899100101102 ... LastLast
Results 991 to 1,000 of 1064
  1. #991
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    6,264
    I need to wait a few days for the dust to settle and see what YouTube decides to do (search a bit on the internet and you'll see what I mean)
    LMS 7.9 on Pi 3B+ & Odroid-C2 - SqueezeAMP!, 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, Riva 1 & 3

  2. #992
    Junior Member
    Join Date
    Dec 2008
    Posts
    9
    Quote Originally Posted by philippe_44 View Post
    I need to wait a few days for the dust to settle and see what YouTube decides to do (search a bit on the internet and you'll see what I mean)
    Interesting. Indeed there is suddenly a lot of noise out there about the RIAA coming after YouTube downloaders, in particular a recent RIAA notice to youtube-dl.

    To be honnest, I have always felt that the amazing ad-free way by which we can access youtube content on LMS is almost to good to last. Of course LMS is small game and probably doesn't even register with Google, but since it uses ways that are similar to larger tools like youtube-dl it will suffer when they shut the door by actually protecting things. In the meantime, RIAA notices are pretty silly since there really is no actual physical restriction being circumvented besides the good old "somewhat messy and hard to read plain text response that keeps changing randomly a bit from time to time".

  3. #993
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    6,264
    Quote Originally Posted by dawansv View Post
    Interesting. Indeed there is suddenly a lot of noise out there about the RIAA coming after YouTube downloaders, in particular a recent RIAA notice to youtube-dl.

    To be honnest, I have always felt that the amazing ad-free way by which we can access youtube content on LMS is almost to good to last. Of course LMS is small game and probably doesn't even register with Google, but since it uses ways that are similar to larger tools like youtube-dl it will suffer when they shut the door by actually protecting things. In the meantime, RIAA notices are pretty silly since there really is no actual physical restriction being circumvented besides the good old "somewhat messy and hard to read plain text response that keeps changing randomly a bit from time to time".
    But this plugin does not have the purpose to *download* files, does not claim to have it. It's more a different way to browse content. It's just a purposed-built web browser
    LMS 7.9 on Pi 3B+ & Odroid-C2 - SqueezeAMP!, 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, Riva 1 & 3

  4. #994
    Junior Member
    Join Date
    Dec 2008
    Posts
    9
    Quote Originally Posted by philippe_44 View Post
    But this plugin does not have the purpose to *download* files, does not claim to have it. It's more a different way to browse content. It's just a purposed-built web browser
    Indeed. What I was trying to say is that the day might come where Youtube is forced to go where only approved client-side apps will be able to access the content, as that is really the only way to restrict the way separetely-served content is arranged and presented at the end point. But of course doing so would reduce the appeal, the number of users and ad revenue, so probably not their first choice. The deeper issue here as far as I can understand is that all this content (ad, videos, etc) is really openly served separately and then combined by client-side tools that anybody is free to create. So alternatively they could upgrade their back end infrastrucuture so the publicly served content is amalgated in the back-end for each specific request -- meaning ads and content are combined before being served. But doing so would require SO MUCH more back-end power than the client-side rearranging they use right now, and considering the sheer scale, probably really costly. Then of course people would come up with TIVO style tools that would skip the ads... Cat and mouse game. So maybe I managed to make the counter argument that they can't really practically lock anything after all.

    So for now they leave their stuff right in the open (because that's cheap), rearrange things in a messy pile from time to time, and try to intimidate people to not create custom uses. In the real world, this would be the equivalent of any of us leaving our stuff on the sidewalk and then complaining that people are just helping themselves. Would anybody take that complaint seriously? No, but we are not multi-billion dollar corporations, so there is that.
    Last edited by dawansv; 2020-10-24 at 13:19.

  5. #995
    I was having some issues playing YouTube content due to problems related to my Sox & LAME installation on my NAS, but once I figured those out I got the same error messages about being unable to unobfuscate. I have it on most of the streams I try to play. If there's anything I can do to help/debug/analyse, please feel free to reach out. Below a snippet of my log when trying to play streams. Or could it be that I'm running into some other problem?

    Code:
    20-10-27 19:47:07.2053] Slim::Player::StreamingController::nextsong (889) The next song is number 22, was 21
    [20-10-27 19:47:07.2078] Slim::Player::Song::new (108) index 22 -> youtube://www.youtube.com/v/5GHs34ltWjM
    [20-10-27 19:47:07.2111] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
    [20-10-27 19:47:07.2149] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/5GHs34ltWjM
    [20-10-27 19:47:07.2181] Slim::Player::Song::getNextSong (230) youtube://www.youtube.com/v/5GHs34ltWjM
    [20-10-27 19:47:07.2201] Plugins::YouTube::ProtocolHandler::getNextTrack (353) next track id: 5GHs34ltWjM url: http://www.youtube.com/watch?v=5GHs34ltWjM master: youtube://www.youtube.com/v/5GHs34ltWjM
    [20-10-27 19:47:07.9721] Plugins::YouTube::ProtocolHandler::__ANON__ (379) trying regular streams
    [20-10-27 19:47:07.9738] Plugins::YouTube::ProtocolHandler::__ANON__ (384) no stream found, trying MPD/DASH
    [20-10-27 19:47:07.9770] Plugins::YouTube::ProtocolHandler::__ANON__ (422) no stream/DASH found 
    [20-10-27 19:47:07.9789] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/5GHs34ltWjM
    [20-10-27 19:47:07.9829] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
    [20-10-27 19:47:07.9849] Slim::Player::StreamingController::nextsong (889) The next song is number 23, was 22
    [20-10-27 19:47:07.9869] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
    [20-10-27 19:47:07.9887] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: 
    [20-10-27 19:47:07.9906] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
    [20-10-27 19:47:07.9925] Slim::Player::StreamingController::nextsong (889) The next song is number 24, was 23
    [20-10-27 19:47:07.9948] Slim::Player::Song::new (108) index 24 -> youtube://www.youtube.com/v/cfnRbn4VZ2Q
    [20-10-27 19:47:07.9984] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
    [20-10-27 19:47:08.0022] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/cfnRbn4VZ2Q
    [20-10-27 19:47:08.0051] Slim::Player::Song::getNextSong (230) youtube://www.youtube.com/v/cfnRbn4VZ2Q
    [20-10-27 19:47:08.0072] Plugins::YouTube::ProtocolHandler::getNextTrack (353) next track id: cfnRbn4VZ2Q url: http://www.youtube.com/watch?v=cfnRbn4VZ2Q master: youtube://www.youtube.com/v/cfnRbn4VZ2Q
    [20-10-27 19:47:08.8022] Plugins::YouTube::ProtocolHandler::__ANON__ (379) trying regular streams
    [20-10-27 19:47:08.8038] Plugins::YouTube::ProtocolHandler::__ANON__ (384) no stream found, trying MPD/DASH
    [20-10-27 19:47:08.8071] Plugins::YouTube::ProtocolHandler::__ANON__ (422) no stream/DASH found 
    [20-10-27 19:47:08.8091] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/cfnRbn4VZ2Q
    [20-10-27 19:47:08.8135] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
    [20-10-27 19:47:08.8154] Slim::Player::StreamingController::nextsong (889) The next song is number 25, was 24
    [20-10-27 19:47:08.8174] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
    [20-10-27 19:47:08.8192] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: 
    [20-10-27 19:47:08.8211] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
    [20-10-27 19:47:08.8231] Slim::Player::StreamingController::nextsong (889) The next song is number 26, was 25
    [20-10-27 19:47:08.8255] Slim::Player::Song::new (108) index 26 -> youtube://www.youtube.com/v/4tBbbIOMZSY
    [20-10-27 19:47:08.8289] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
    [20-10-27 19:47:08.8327] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/4tBbbIOMZSY
    [20-10-27 19:47:08.8357] Slim::Player::Song::getNextSong (230) youtube://www.youtube.com/v/4tBbbIOMZSY
    [20-10-27 19:47:08.8379] Plugins::YouTube::ProtocolHandler::getNextTrack (353) next track id: 4tBbbIOMZSY url: http://www.youtube.com/watch?v=4tBbbIOMZSY master: youtube://www.youtube.com/v/4tBbbIOMZSY
    [20-10-27 19:47:09.6654] Plugins::YouTube::ProtocolHandler::__ANON__ (379) trying regular streams
    [20-10-27 19:47:09.6672] Plugins::YouTube::ProtocolHandler::__ANON__ (384) no stream found, trying MPD/DASH
    [20-10-27 19:47:09.6703] Plugins::YouTube::ProtocolHandler::__ANON__ (422) no stream/DASH found 
    [20-10-27 19:47:09.6722] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/4tBbbIOMZSY
    [20-10-27 19:47:09.6765] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
    [20-10-27 19:47:09.6784] Slim::Player::StreamingController::nextsong (889) The next song is number 27, was 26
    [20-10-27 19:47:09.6808] Slim::Player::Song::new (108) index 27 -> youtube://www.youtube.com/v/RUTyS7v0ZF0
    [20-10-27 19:47:09.6841] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
    [20-10-27 19:47:09.6881] Slim::Player::StreamingController::_playersMessage (796) Getting stream info...: youtube://www.youtube.com/v/RUTyS7v0ZF0
    [20-10-27 19:47:09.6910] Slim::Player::Song::getNextSong (230) youtube://www.youtube.com/v/RUTyS7v0ZF0
    [20-10-27 19:47:09.6930] Plugins::YouTube::ProtocolHandler::getNextTrack (353) next track id: RUTyS7v0ZF0 url: http://www.youtube.com/watch?v=RUTyS7v0ZF0 master: youtube://www.youtube.com/v/RUTyS7v0ZF0
    [20-10-27 19:47:10.5435] Plugins::YouTube::ProtocolHandler::__ANON__ (379) trying regular streams
    [20-10-27 19:47:10.5581] Plugins::YouTube::ProtocolHandler::__ANON__ (384) no stream found, trying MPD/DASH
    [20-10-27 19:47:10.5610] Plugins::YouTube::ProtocolHandler::__ANON__ (422) no stream/DASH found 
    [20-10-27 19:47:10.5629] Slim::Player::StreamingController::_playersMessage (796) Problem: Can't open file for:: youtube://www.youtube.com/v/RUTyS7v0ZF0
    [20-10-27 19:47:10.5672] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state IDLE
    [20-10-27 19:47:10.5695] Slim::Player::StreamingController::nextsong (889) The next song is number 0, was 27

  6. #996
    Quote Originally Posted by dawansv View Post
    Thank you Philippe. I am unclear whether you actually experience the missing assets information from your location (or just saw it in the debug info from hubertbanas), so if that helps here are 2 html content files from 2 youtube videos downloaded from my US West Coast location, one with the assets and one without (stated in file names within the zip): https://drive.google.com/file/d/1SCu...Oi2C1gPxU/view

    If others want to test whether replacing the reference to "assets... js" with "jsUrl" works for them, the file to edit is ProtocolHandler.pm. On Debian/Ubuntu it is located here:
    Code:
    /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm
    You need to update line 72 from
    Code:
    my ($player_url) = ($content =~ /"assets":.+?"js":\s*("[^"]+")/);
    to
    Code:
    my ($player_url) = ($content =~ /"jsUrl":\s*("[^"]+")/);
    You need to restart LMS after the update for the cache to be reloaded and the change to take effect.

    Please only do this if you are somewhat familiar with updating text files with admin right and know how to revert your changes. This is not a fully tested fix and it might create other problems with some videos.
    Just made this adjustment on my NAS as well manually, and for a handfull of songs that I tried which previously failed, I can confirm they're playing again now. FWIW

  7. #997
    Quote Originally Posted by Hawkeyenl View Post
    Just made this adjustment on my NAS as well manually, and for a handfull of songs that I tried which previously failed, I can confirm they're playing again now. FWIW
    I am getting mixed results from this , some of the tracks that were playing before are no longer playing and visa versa some that were not now are

  8. #998
    Quote Originally Posted by justjason View Post
    I am getting mixed results from this , some of the tracks that were playing before are no longer playing and visa versa some that were not now are
    perhaps a smarter if(assets) else (jsurl) would work?

  9. #999
    Junior Member
    Join Date
    Dec 2008
    Posts
    9
    Quote Originally Posted by justjason View Post
    I am getting mixed results from this , some of the tracks that were playing before are no longer playing and visa versa some that were not now are
    Can you provide a youtube link to one of the tracks that is failing? I would be curious to see what it looks like.

    And as Hawkeyenl mentions, you can certainly combine both the old and new checks

    Code:
            # Try getting the player's url using assets:..js value
            my ($player_url) = ($content =~ /"assets":.+?"js":\s*("[^"]+")/);
    
            # if unavailable, try jsUrl value
            if ( !$player_url ) {
                    ($player_url) = ($content =~ /"jsUrl":\s*("[^"]+")/);
            }
    There might be a clever way to combine both statements into one with some fancy Perl syntax and remove the if statement but I am not really that proficient with Perl to do that (especially since we are dealing with regex extractions, not simple assignments)...
    Last edited by dawansv; 2020-10-28 at 14:59.

  10. #1000
    Quote Originally Posted by dawansv View Post
    Can you provide a youtube link to one of the tracks that is failing? I would be curious to see what it looks like.
    It would be easier to give you a simple method to get your own trial list. Just simply do search for you favourite artists in the you tube video search, add the entire list to your play list with the + button and start playing the list. Bad files will be detected and skipped. You can gauge from that how effective the changes are.

Posting Permissions

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