user234683 / youtube-local

browser-based client for watching Youtube anonymously and with greater page performance
GNU Affero General Public License v3.0
544 stars 66 forks source link

Perpetual timeouts and errors #192

Open GregFdz opened 10 months ago

GregFdz commented 10 months ago

Hi, I've been using Yt-local for a while and everything was smooth. But, a few weeks ago, it started to deteriorate gradually. It began with the video crashing in the middle of playing it and I wasn't able to make it work otherwise than by reloading the page. Then it got worse by doing just that and then throwing errors when I would reload. Now, most of the time, yt-local doesn't even load and I get a timeout from my browser when I try to load a page. I didn't make any significant change to my windows os, I don't often use my PC. This is really strange...

The error :

Failed to establish a connection.

HTTPSConnectionPool(host='consent.youtube.com', port=443): Max retries exceeded with url: /m?continue=https%3A%2F%2Fm.youtube.com%2Fembed%2FlYvMc-tQvkM%3Fbpctr%3D9999999999%26cbrd%3D1&gl=FR&m=1&pc=yt&cm=2&hl=en&src=1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001518AE17BD0>: Failed to establish a new connection: [Errno 10048] [WinError 10048] Une seule utilisation de chaque adresse de socket (protocole/adresse réseau/port) est habituellement autorisée.'))
user234683 commented 10 months ago

yt-dlp issue: https://github.com/yt-dlp/yt-dlp/issues/7594 Fix: https://github.com/yt-dlp/yt-dlp/pull/7774/files

user234683 commented 10 months ago

Edit the file youtube/watch.py. After line 417, add this line:

        ('Cookie', 'SOCS=CAI'),

image Does this fix the issue for you? Haven't been able to reproduce with european VPN

user234683 commented 10 months ago

Also for the other issue "It began with the video crashing in the middle of playing it and I wasn't able to make it work otherwise than by reloading the page." what video resolution were you watching at?