[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
parent 29e2570378
commit 7bd79d9296
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):