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)
|
fd.write(chunk)
|
||||||
shutil.move(tmpname, filename)
|
shutil.move(tmpname, filename)
|
||||||
|
|
||||||
|
|
||||||
def upload_chunks(self, url, filename, data=None, silent=False):
|
def upload_chunks(self, url, filename, data=None, silent=False):
|
||||||
form = MultiPartForm()
|
form = MultiPartForm()
|
||||||
if data:
|
if data:
|
||||||
|
|
|
@ -32,7 +32,8 @@ EXTENSIONS = {
|
||||||
'avi', 'divx', 'dv', 'flv', 'm2t', 'm2ts', 'm4v', 'mkv', 'mov', 'mp4',
|
'avi', 'divx', 'dv', 'flv', 'm2t', 'm2ts', 'm4v', 'mkv', 'mov', 'mp4',
|
||||||
'mpeg', 'mpg', 'mts', 'ogm', 'ogv', 'rm', 'rmvb', 'vob', 'webm', 'wmv', 'asf',
|
'mpeg', 'mpg', 'mts', 'ogm', 'ogv', 'rm', 'rmvb', 'vob', 'webm', 'wmv', 'asf',
|
||||||
'mod', 'tod', # http://en.wikipedia.org/wiki/MOD_and_TOD
|
'mod', 'tod', # http://en.wikipedia.org/wiki/MOD_and_TOD
|
||||||
'mxf', 'ts'
|
'mxf', 'ts',
|
||||||
|
'dat', # VOD files
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue