projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e568c22
)
[utils] Improve determine_ext (Closes #7593)
author
Sergey M․
<dstftw@gmail.com>
Sun, 22 Nov 2015 00:29:39 +0000
(06:29 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 22 Nov 2015 00:29:39 +0000
(06:29 +0600)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index bff59eb73320ae611249efce55993873c8d8055a..7dab60bb859b3ad52ea3e52b079e7087d7165099 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-922,7
+922,7
@@
def unified_strdate(date_str, day_first=True):
def determine_ext(url, default_ext='unknown_video'):
if url is None:
return default_ext
- guess = url.partition('?')[0].rpartition('.')[2]
+ guess = url.partition('?')[0].rpartition('.')[2]
.rstrip('/')
if re.match(r'^[A-Za-z0-9]+$', guess):
return guess
else: