aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorIsmael Mejia <iemejia@gmail.com>2013-08-26 04:03:40 +0200
committerIsmael Mejia <iemejia@gmail.com>2013-08-28 00:33:12 +0200
commit06a401c845289344bfe8998a0acad07f79fe7818 (patch)
tree21006d0073cc901010d8793f95293bc2e5d6a2cf /youtube_dl/utils.py
parentbd2dee6c67b837bdebdd28d10d9586129021330e (diff)
parentd4051a8e051a06ddeab905a4b5fcc7ddb70952bf (diff)
Merge branch 'master' into subtitles_rework
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 5dd5b2923..52cfb8a6d 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -657,6 +657,9 @@ def determine_ext(url, default_ext=u'unknown_video'):
else:
return default_ext
+def subtitles_filename(filename, sub_lang, sub_format):
+ return filename.rsplit('.', 1)[0] + u'.' + sub_lang + u'.' + sub_format
+
def date_from_str(date_str):
"""
Return a datetime object from a string in the format YYYYMMDD or