|
|
@ -89,13 +89,9 @@ def run_update(ydl):
|
|
|
|
|
|
|
|
|
|
|
|
err = None
|
|
|
|
err = None
|
|
|
|
if isinstance(globals().get('__loader__'), zipimporter):
|
|
|
|
if isinstance(globals().get('__loader__'), zipimporter):
|
|
|
|
# We only support python 3.6 or above
|
|
|
|
pass
|
|
|
|
if sys.version_info < (3, 6):
|
|
|
|
|
|
|
|
err = 'This is the last release of yt-dlp for Python version %d.%d! Please update to Python 3.6 or above' % sys.version_info[:2]
|
|
|
|
|
|
|
|
elif hasattr(sys, 'frozen'):
|
|
|
|
elif hasattr(sys, 'frozen'):
|
|
|
|
# Python 3.6 supports only vista and above
|
|
|
|
pass
|
|
|
|
if sys.getwindowsversion()[0] < 6:
|
|
|
|
|
|
|
|
err = 'This is the last release of yt-dlp for your version of Windows. Please update to Windows Vista or above'
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
err = 'It looks like you installed yt-dlp with a package manager, pip, setup.py or a tarball. Please use that to update'
|
|
|
|
err = 'It looks like you installed yt-dlp with a package manager, pip, setup.py or a tarball. Please use that to update'
|
|
|
|
if err:
|
|
|
|
if err:
|
|
|
|