mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 11:16:26 -07:00
Update flows
This commit is contained in:
parent
658857fdf4
commit
25c4fab8d9
73 changed files with 4295 additions and 839 deletions
13
FlowPluginsTs/FlowHelpers/1.0.0/fileUtils.ts
Normal file
13
FlowPluginsTs/FlowHelpers/1.0.0/fileUtils.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
export const getContainer = (filePath: string):string => {
|
||||
const parts = filePath.split('.');
|
||||
return parts[parts.length - 1];
|
||||
};
|
||||
|
||||
export const getFileName = (filePath: string):string => {
|
||||
const parts = filePath.split('/');
|
||||
const fileNameAndContainer = parts[parts.length - 1];
|
||||
const parts2 = fileNameAndContainer.split('.');
|
||||
return parts2[0];
|
||||
};
|
||||
|
||||
export const getFfType = (codecType:string):string => (codecType === 'video' ? 'v' : 'a');
|
||||
Loading…
Add table
Add a link
Reference in a new issue