1
0
Fork 0

[ie/youtube] Allow ejs patch version to differ (#15263)

Authored by: Grub4K
This commit is contained in:
Simon Sawicki 2025-12-07 23:10:53 +01:00 committed by GitHub
commit 7bd79d9296
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 13 deletions

View file

@ -2895,8 +2895,9 @@ def limit_length(s, length):
return s
def version_tuple(v):
return tuple(int(e) for e in re.split(r'[-.]', v))
def version_tuple(v, *, lenient=False):
parse = int_or_none(default=-1) if lenient else int
return tuple(parse(e) for e in re.split(r'[-.]', v))
def is_outdated_version(version, limit, assume_new=True):