mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
38 lines
No EOL
680 B
JavaScript
38 lines
No EOL
680 B
JavaScript
|
|
|
|
function remuxContainer(file, container) {
|
|
|
|
try {
|
|
|
|
|
|
if (file.container != container) {
|
|
|
|
var response = {
|
|
processFile: true,
|
|
note:`File is not in ${container} \n`
|
|
}
|
|
return response
|
|
|
|
} else {
|
|
|
|
var response = {
|
|
processFile: false,
|
|
note:`File is already in ${container} \n`
|
|
}
|
|
return response
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (err) {
|
|
var response = {
|
|
processFile: false,
|
|
note:`library.actions.remuxContainer error: ${err} \n`
|
|
}
|
|
return response
|
|
}
|
|
}
|
|
|
|
|
|
module.exports = remuxContainer |