Add a post processor for embedding subtitles in mp4 videos (closes #1052)
This commit is contained in:
parent
df3df7fb64
commit
d4051a8e05
4 changed files with 241 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue