Files
spotify-gui/update.py
Brandon4466 c18594855e added threading for the lyrics download for speed
added update print to console if updated
2023-02-10 22:57:12 -08:00

19 lines
434 B
Python

import urllib
from urllib.request import urlopen
from zipfile import ZipFile
from io import BytesIO
while True:
try:
urlopen('http://bbrunson.com', timeout=1)
break
except:
pass
try:
with ZipFile(BytesIO((urlopen('http://files.bbrunson.com/spotify-gui/update.zip')).read())) as zipObj:
zipObj.extractall()
except urllib.error.HTTPError:
pass
exec(open('spotifycontroller.py').read())