Only process if properties are available
This commit is contained in:
parent
29d1f7e836
commit
1931ff9afb
@ -38,6 +38,9 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
||||
_Other: 'Other'
|
||||
}
|
||||
|
||||
//only process if properties available
|
||||
if (file.ffProbeData.streams[0].codec_name && file.video_resolution) {
|
||||
|
||||
let resolution = '_' + file.video_resolution
|
||||
let resShouldBe = resolutions[resolution]
|
||||
let codecShouldBe = file.ffProbeData.streams[0].codec_name
|
||||
@ -129,6 +132,7 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
||||
|
||||
return response;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user