force seafile content-type
This commit is contained in:
		@@ -235,7 +235,9 @@ class SeafileRunner(StreamProvider):
 | 
				
			|||||||
            self.logger.info("%s <%s>", e, self.upstream)
 | 
					            self.logger.info("%s <%s>", e, self.upstream)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            stream_data["title"] = json_data.get("filePath")
 | 
					            stream_data["title"] = json_data.get("filePath")
 | 
				
			||||||
            stream_data["upstream"] = json_data.get("rawPath") 
 | 
					            stream_data["upstream"] = json_data.get("rawPath")
 | 
				
			||||||
 | 
					            if json_data.get("filePath").lower().endswith(".mp4"):
 | 
				
			||||||
 | 
					                stream_data["ctype"] = "video/mp4"
 | 
				
			||||||
        return StreamData(**stream_data)
 | 
					        return StreamData(**stream_data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class MetaProvider(StreamProvider):
 | 
					class MetaProvider(StreamProvider):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user