mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 10:45:53 -07:00
Update flows
This commit is contained in:
parent
658857fdf4
commit
25c4fab8d9
73 changed files with 4295 additions and 839 deletions
17
FlowPlugins/FlowHelpers/1.0.0/fileUtils.js
Normal file
17
FlowPlugins/FlowHelpers/1.0.0/fileUtils.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getFfType = exports.getFileName = exports.getContainer = void 0;
|
||||
var getContainer = function (filePath) {
|
||||
var parts = filePath.split('.');
|
||||
return parts[parts.length - 1];
|
||||
};
|
||||
exports.getContainer = getContainer;
|
||||
var getFileName = function (filePath) {
|
||||
var parts = filePath.split('/');
|
||||
var fileNameAndContainer = parts[parts.length - 1];
|
||||
var parts2 = fileNameAndContainer.split('.');
|
||||
return parts2[0];
|
||||
};
|
||||
exports.getFileName = getFileName;
|
||||
var getFfType = function (codecType) { return (codecType === 'video' ? 'v' : 'a'); };
|
||||
exports.getFfType = getFfType;
|
||||
Loading…
Add table
Add a link
Reference in a new issue