support dat
This commit is contained in:
parent
f7c7a6689b
commit
7e72cfd163
2 changed files with 3 additions and 1 deletions
|
@ -151,6 +151,7 @@ class API(object):
|
|||
fd.write(chunk)
|
||||
shutil.move(tmpname, filename)
|
||||
|
||||
|
||||
def upload_chunks(self, url, filename, data=None, silent=False):
|
||||
form = MultiPartForm()
|
||||
if data:
|
||||
|
|
|
@ -32,7 +32,8 @@ EXTENSIONS = {
|
|||
'avi', 'divx', 'dv', 'flv', 'm2t', 'm2ts', 'm4v', 'mkv', 'mov', 'mp4',
|
||||
'mpeg', 'mpg', 'mts', 'ogm', 'ogv', 'rm', 'rmvb', 'vob', 'webm', 'wmv', 'asf',
|
||||
'mod', 'tod', # http://en.wikipedia.org/wiki/MOD_and_TOD
|
||||
'mxf', 'ts'
|
||||
'mxf', 'ts',
|
||||
'dat', # VOD files
|
||||
],
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue