mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Updated to include handling for AVC (#193)
Added handling for AVC. Lots of my remuxes from Radarr had AVC in the filename as opposed to h264/x264. This replaces the AVC string with HEVC.
This commit is contained in:
parent
29f23fadbf
commit
4777f2a676
1 changed files with 9 additions and 0 deletions
|
|
@ -26,6 +26,15 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
|||
file._id = file._id.replace("264", "265");
|
||||
file.file = file.file.replace("264", "265");
|
||||
}
|
||||
|
||||
//added handling for files with AVC in the name instead of h264/x264
|
||||
if (
|
||||
file.ffProbeData.streams[0].codec_name == "hevc" &&
|
||||
file._id.includes("AVC")
|
||||
) {
|
||||
file._id = file._id.replace("AVC", "HEVC");
|
||||
file.file = file.file.replace("AVC", "HEVC");
|
||||
}
|
||||
|
||||
if (
|
||||
file.ffProbeData.streams[0].codec_name == "h264" &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue