Add Detect Media Type by File

This commit is contained in:
MengYX
2020-02-11 15:51:07 +08:00
parent 10f09958c4
commit c314a251c2
7 changed files with 40 additions and 33 deletions

View File

@@ -3,7 +3,6 @@ const QmcDecrypt = require("./qmc");
const RawDecrypt = require("./raw");
const TmDecrypt = require("./tm");
export async function CommonDecrypt(file) {
let raw_ext = file.name.substring(file.name.lastIndexOf(".") + 1, file.name.length).toLowerCase();
let raw_filename = file.name.substring(0, file.name.lastIndexOf("."));