projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ffmpeg] Improve version check and call it from hls (Fixes #4377)
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 5efb4c59a18e0c89e902f66be6dfe93af6b71df5..2e70cc791bca5eaf5b2c1067741b9e25334a3377 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1502,7
+1502,7
@@
def limit_length(s, length):
def version_tuple(v):
- return
[int(e) for e in v.split('.')]
+ return
tuple(int(e) for e in re.split(r'[-.]', v))
def is_outdated_version(version, limit, assume_new=True):