aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-08-01 19:08:09 +0700
committerSergey M․ <dstftw@gmail.com>2014-08-01 19:08:09 +0700
commitf4776371ae6e5472ec6dc96084461df621e99d37 (patch)
treec00b85e3be4def79922ff70f6fab66986fa5fc14 /youtube_dl/utils.py
parent328a20bf9c9cbc67ad0d4147bae0292cf2aec64b (diff)
[izlesene] Minor changes
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 0d0bbe8f6..e40b367c2 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -852,6 +852,8 @@ def unified_strdate(date_str):
return upload_date
def determine_ext(url, default_ext=u'unknown_video'):
+ if url is None:
+ return default_ext
guess = url.partition(u'?')[0].rpartition(u'.')[2]
if re.match(r'^[A-Za-z0-9]+$', guess):
return guess