support dat

This commit is contained in:
j 2021-02-23 09:09:35 +01:00
parent f7c7a6689b
commit 7e72cfd163
2 changed files with 3 additions and 1 deletions

View file

@ -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:

View file

@ -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
],
}