Add m3u8 export file format

This commit is contained in:
JonnyWong16 2020-10-02 19:42:24 -07:00
parent be9f06795d
commit 34c9ede9c9
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
6 changed files with 89 additions and 17 deletions

View file

@ -6707,6 +6707,9 @@ class WebInterface(object):
elif result['file_format'] == 'xml':
return serve_file(filepath, name=result['filename'], content_type='application/xml;charset=UTF-8')
elif result['file_format'] == 'm3u8':
return serve_file(filepath, name=result['filename'], content_type='text/plain;charset=UTF-8')
else:
if result and result.get('complete') == 0:
msg = 'Export is still being processed.'