mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 18:45:53 -07:00
Fix for sub bug (remux first)
This commit is contained in:
parent
d92cd237b9
commit
c2207cccef
1 changed files with 40 additions and 41 deletions
|
|
@ -9,7 +9,7 @@ function details() {
|
||||||
Type: "Video",
|
Type: "Video",
|
||||||
Description: `This plugin removes metadata (if a title exists) and adds a stereo 192kbit AAC track if an AAC track (any) doesn't exist. The output container is mp4. \n\n
|
Description: `This plugin removes metadata (if a title exists) and adds a stereo 192kbit AAC track if an AAC track (any) doesn't exist. The output container is mp4. \n\n
|
||||||
`,
|
`,
|
||||||
Version: "1.00",
|
Version: "1.01",
|
||||||
Link: "https://github.com/HaveAGitGat/Tdarr_Plugin_hk76_GilbN_MP4_AAC_No_metaTitle"
|
Link: "https://github.com/HaveAGitGat/Tdarr_Plugin_hk76_GilbN_MP4_AAC_No_metaTitle"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -52,7 +52,20 @@ function plugin(file) {
|
||||||
|
|
||||||
var jsonString = JSON.stringify(file)
|
var jsonString = JSON.stringify(file)
|
||||||
|
|
||||||
///
|
if (file.container != 'mp4') {
|
||||||
|
|
||||||
|
response.infoLog += " File is not in mp4 container! \n"
|
||||||
|
response.preset = ', -c:v copy -c:a copy'
|
||||||
|
response.reQueueAfter = true;
|
||||||
|
response.processFile = true;
|
||||||
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
response.infoLog += " File is in mp4 container! \n"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (file.meta.Title != undefined) {
|
if (file.meta.Title != undefined) {
|
||||||
|
|
||||||
response.infoLog += " File has title metadata \n"
|
response.infoLog += " File has title metadata \n"
|
||||||
|
|
@ -77,21 +90,7 @@ function plugin(file) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if( file.container != 'mp4'){
|
|
||||||
|
|
||||||
response.infoLog += " File is not in mp4 container! \n"
|
|
||||||
response.preset = ', -c:v copy -c:a copy'
|
|
||||||
response.reQueueAfter = true;
|
|
||||||
response.processFile = true;
|
|
||||||
return response
|
|
||||||
|
|
||||||
|
|
||||||
}else{
|
|
||||||
|
|
||||||
response.infoLog += " File is in mp4 container! \n"
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
response.infoLog += " File meets conditions! \n"
|
response.infoLog += " File meets conditions! \n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue