mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 13:25:13 +01:00
[update] Do not check _update_spec
when up to date
This commit is contained in:
parent
28cdb605aa
commit
a63b35a60c
@ -88,6 +88,10 @@ class Updater:
|
||||
|
||||
@functools.cached_property
|
||||
def _tag(self):
|
||||
latest = self._get_version_info('latest')['tag_name']
|
||||
if version_tuple(__version__) >= version_tuple(latest):
|
||||
return 'latest'
|
||||
|
||||
identifier = f'{detect_variant()} {system_identifier()}'
|
||||
for line in self._download('_update_spec', 'latest').decode().splitlines():
|
||||
if not line.startswith('lock '):
|
||||
|
Loading…
Reference in New Issue
Block a user