Athlon1600 / php-proxy-plugin-bundle

PHP-Proxy Plugins made for unblockvideos.com
https://unblockvideos.com/
MIT License
20 stars 25 forks source link

New YouTube layout #18

Closed BinBashBanana closed 4 years ago

BinBashBanana commented 4 years ago

Hi there, I'm wondering how I would enable the new youtube look.

It looks like I could change something in YoutubePlugin.php:

    // force old YouTube layout!
    public function onBeforeRequest(ProxyEvent $event)
    {
        $event['request']->headers->set('Cookie', 'PREF=f6=8');
        $event['request']->headers->set('User-Agent', 'Opera/7.50 (Windows XP; U)');
    }

I have tried removing the Cookie line, and nothing changes, but when I remove/change the User-Agent line, I appear to get the new layout, but it will not fully load. Is there something I can change, or is this not fixable? Thanks in advance!

ch4rc0al1080 commented 4 years ago

It seems Youtube does not support old style any more...

ch4rc0al1080 commented 4 years ago

And Youtube in unblockvideos.com is down too

ch4rc0al1080 commented 4 years ago

Aha! I have found the solution and Youtube in my site is working again

BinBashBanana commented 4 years ago

What? lmao

MapGuy11 commented 4 years ago

Its being worked on here https://github.com/Athlon1600/php-proxy-app/issues/183

Athlon1600 commented 4 years ago

it seems that youtube permanently retired their old layout, and now there is no way to bring it back. Youtube has failed to load for a while on php-proxy-app, but now that has been fixed here: https://github.com/Athlon1600/php-proxy-app/issues/183