touchbar-lyric icon indicating copy to clipboard operation
touchbar-lyric copied to clipboard

Lyric Website Blocks Connection

Open p3n74 opened this issue 1 year ago • 2 comments

The code works for one sone but after that, the website blocks any connections.

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.megalobiz.com', port=443): Max retries exceeded with url: /search/all?qry=Seafret+Atlantis&display=more (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x102842a50>: Failed to establish a new connection: [Errno 61] Connection refused'))

p3n74 avatar May 12 '24 17:05 p3n74

changing to execute script every 3-5 seconds instead of 1 seems to fix this but there is delay

p3n74 avatar May 12 '24 17:05 p3n74

Thanks for raising the issue.

I wasn't able to fix the connection issue with the same song. However, I was able to add a few tricks to smooth the experience a little bit. Still, you should expect some delay for any new song (subsequent play will reuse the same lyric info).

Make sure you update the package with

pip install --upgrade touchbar_lyric

ChenghaoMou avatar May 14 '24 19:05 ChenghaoMou