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.
make-only-subtitle-default
Zack MacLennan 4 years ago committed by GitHub
parent 29f23fadbf
commit 4777f2a676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save