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

@ -32,6 +32,8 @@ def rsa_verify(message, signature, key):
def update_self(to_screen, verbose, opener): def update_self(to_screen, verbose, opener):
"""Update the program file with the latest version from the repository""" """Update the program file with the latest version from the repository"""
return to_screen('Update is currently broken.\nVisit https://github.com/pukkandan/yt-dlc/releases/latest to get the latest version')
UPDATE_URL = 'https://blackjack4494.github.io//update/' UPDATE_URL = 'https://blackjack4494.github.io//update/'
VERSION_URL = UPDATE_URL + 'LATEST_VERSION' VERSION_URL = UPDATE_URL + 'LATEST_VERSION'
JSON_URL = UPDATE_URL + 'versions.json' JSON_URL = UPDATE_URL + 'versions.json'

View File

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