Disable Updates

This commit is contained in:
pukkandan
2021-01-06 17:28:30 +05:30
parent 2af884ff22
commit 735d865ece
2 changed files with 4 additions and 0 deletions

View File

@@ -4156,6 +4156,8 @@ def is_outdated_version(version, limit, assume_new=True):
def ytdl_is_updateable():
""" Returns if youtube-dlc can be updated with -U """
return False
from zipimport import zipimporter
return isinstance(globals().get('__loader__'), zipimporter) or hasattr(sys, 'frozen')