Commit graph

32 commits

Author SHA1 Message Date
HaveAGitGat
b265e586e8 Catch lowercase bug 2022-08-08 23:52:05 +01:00
HaveAGitGat
7cc3b20d19 Disable global-require 2022-01-01 15:36:43 +00:00
HaveAGitGat
f037743bea Move imports into plugin function 2021-12-31 16:47:05 +00:00
HaveAGitGat
3042b35800 Use const lib = require('../methods/lib')(); for fresh imports 2021-12-31 16:22:15 +00:00
HaveAGitGat
db22ca561e update imports 2021-12-31 16:13:18 +00:00
HaveAGitGat
9e04b43e75 revertChanges 2021-12-28 23:05:31 +00:00
HaveAGitGat
2ba3df1977
Update lib (#227)
* Update library.js

* update imports

* update defaults
2021-12-28 22:37:51 +01:00
HaveAGitGat
b3e47f9bf8 Add dropdown to default plugins 2021-12-12 17:37:38 +00:00
HaveAGitGat
90e2b3923a Plugin update 2021-12-11 19:48:53 +00:00
HaveAGitGat
49829c9c24 lint fix 2021-01-09 18:53:53 +01:00
Migz93
1d4a0113ec Migz Plugins Update
1) Update CPU plugin description as it mentions using a GPU which is incorrect.

2) Update CPU & GPU plugins to remove `\n` and `\\n` from the description fields as the description field doesn't seem to use these as new lines and were instead displaying as text.
2021-01-09 16:53:07 +00:00
HaveAGitGat
f0109f2bfe lint fixes 2020-12-19 10:03:49 +01:00
Migz93
b13ae8cc29 Migz Plugins
1. Update various plugins to correctly compare against numbers.
2020-12-15 11:13:47 +00:00
Migz93
864cf41f1d Migz Plugins
1. Made changes to all plugins following lint testing. There are still various warnings/errors but my very limited knowledge of javascript means I just don't understand what the errors mean. Or in some cases I don't understand how to split the variable across several lines to confirm to the line limits.
I did manage to get it from
952 problems (943 errors, 9 warnings)
down to
37 problems (28 errors, 9 warnings)

2. Fix Flawed logic in FFMPEG plugins which would cause remux conditions to never trigger. Was checking if file was HEVC & VP9 which is impossible as they're both codecs.

3. Fixed a bug with CleanTitle where plugin would fail if a stream in the file didn't have a title.

4. Modify CleanSubtitle plugin to not remove sdh subtitles.

5. Include new plugin to just perform remuxes. Mainly aimed at remuxing to mkv or mp4.
2020-12-14 17:33:17 +00:00
HaveAGitGat
7904647075 lint init 2020-12-10 17:43:41 +01:00
Migz93
6ba398eaf4 Migz Plugins
1) Bug fix for CleanTitle where if the title of an audio/substeam didn't exist it would exit that loop but not increment the Id of the track. Was causing the plugin to loop in some cases.

2) Modify both FFMPEG plugins to treat VP9 codec in a similiar way to HEVC. I.e if a file is already in VP9 codec don't transcode it to HEVC as VP9 is already heavily compressed in a similiar way to HEVC. Plugin itself still outputs files as HEVC
2020-10-27 20:27:54 +00:00
Migz93
4ba83c804b Migz Plugin Updates
1) Update to CleanTitle plugin to allow user input custom matching title, allows to remove more then just the default of something with 3 full stops.

2) Update to both FFMPEG plugins to fix a bug where if the force_conform option was enabled and a stream had no codec_name it would cause the plugin to error out.
2020-10-19 19:48:04 +01:00
Migz93
6901d53feb Migz Plugins Update
1) Add input to enable bframes. - ffmpegGPU plugin

2) Add timed_id3 has codec type to remove for mkv/mp4 if force_conform is enabled. - Both ffmpeg plugins

3) max_muxing_queue_size change to 9999 as this number is still too low in some cases.
2020-09-20 03:08:10 +01:00
Jay Boehm
dfe9c5a527
Update Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js
if inputs isn't defined, then inputs.container causes a plugin error that is not caught by the if(inputs.container == "")
this change checks the inputs first
2020-06-15 18:13:38 -04:00
Migz93
d9cd80c44b Migz Plugins: Update
1) Update both plugins transcode plugins with new "force_conform" option.

2) Add "png" to codec image types to be removed.

3) Update GPU plugin to check for 10Bit files instead of just HDR.
2020-06-02 18:01:20 +01:00
Migz93
0066d4497c Migz Plugins
Set reQueueAfter back to true after explanation from GitGAt
2020-05-25 01:22:09 +01:00
Migz93
029224f862 Migz Plugins
Updated mkv data check from "" to `` for consistency.
2020-05-23 12:25:26 +01:00
Migz93
8f123d18a2 Migz Plugins
Change both ffmpeg plugins reQueueAfter to false. These plugins should not need to be requeued and worked on again.

Move mkv data stream check to after extraArguments var creation so that it works as intended.
2020-05-23 12:19:57 +01:00
HaveAGitGat
9c8ac98728 tidy 2020-05-15 01:26:35 +01:00
Migz93
91a974824c Migz FFMPEG Plugins
1) Set bufsize at a variable level dependant on bitrate. (Thanks winsome)

2) Add variable to enable transcoding files to 10bit if preferred.

3) Added two options to GPU transcode plugin after extensive testing/research with different options.
*-cq:v 19
*-rc-lookahead:v 32

4) Modify bitrate cutoff check to completely skip file if below cutoff, rather then check if it should be remuxed.

5) Tidy up some wording.
2020-04-23 10:41:23 +01:00
HaveAGitGat
4edbbe5367
Update Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js 2020-04-20 12:45:41 +01:00
Migz93
20fe6461a1 Update: All Migz Plugins
1) Ran all plugins through javascript formatter to make them look nicer/ have correct javascript formatting.

2) Added comments to all plugins.

3) Modified all plugins that have checks for inputs to check for existance of inputs itself.

4) Modify 5ConvertAudio so that you can just put "true" in a single input, rather then having to put false in the opposing one. If only 1 action is wanted.

5) Fix for 3CleanAudio & 4CleanSubs where if language meta was completely missing then plugins would not set it to the specified tag language.

6) Correct 4CleanSubs input title of "tag_title" to "tag_language"
2020-04-19 20:31:35 +01:00
Migz93
37246dd506 Update: MigzPlguin
Update to Migz1FFMPEG plugins to deal with mjpeg streams. Detect and drop from being mapped.
2020-03-25 22:10:28 +00:00
Migz93
f9124c2368 Update: MigzPlugins
Update to both FFMPEG plugins to fix issue with data streams not being dropped for mkv in certain circumstances. Would cause plugin to fail.
2020-03-23 12:40:16 +00:00
Migz93
1ea2ebc2fe Update: Migz Plugins
Update all plugins to remove "Testing" as they've now been in use for a while with no issues noticed.
2020-03-22 12:20:30 +00:00
Migz93
a05d856fe2 Update Tag
Updated "Tag" to specify H265
2020-03-19 19:00:47 +00:00
Migz93
5735ae6759 Various Updates
1) New plugin that uses CPU to convert to H265.

2) Change to FFMPEG NVidia plugin to specifiy bitrate cutoff.

3) Fix random infolog "2" in CleanTitle

4) Update descriptive audio check in CleanAudio and CleanSubs to look for "sdh"

5) Correct OrderStreams mentioning that "Audio not first" when audio should be second.
2020-03-14 01:00:16 +00:00