force seafile content-type
This commit is contained in:
parent
dde0318e48
commit
4bd5ed6ccc
@ -236,6 +236,8 @@ class SeafileRunner(StreamProvider):
|
||||
else:
|
||||
stream_data["title"] = json_data.get("filePath")
|
||||
stream_data["upstream"] = json_data.get("rawPath")
|
||||
if json_data.get("filePath").lower().endswith(".mp4"):
|
||||
stream_data["ctype"] = "video/mp4"
|
||||
return StreamData(**stream_data)
|
||||
|
||||
class MetaProvider(StreamProvider):
|
||||
|
Loading…
Reference in New Issue
Block a user