Improve remux detection on specific Mediainfo output
This commit is contained in:
parent
dc1737f520
commit
e82697bf2a
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name AnimeBytes Mediainfo Improvements
|
||||
// @author WeebDataHoarder
|
||||
// @version 1.22.2
|
||||
// @version 1.22.3
|
||||
// @downloadURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
|
||||
// @updateURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
|
||||
// @description AnimeBytes Mediainfo Improvements. Adds several listing and matching releases against mediainfo utilities. MIT license
|
||||
|
@ -524,7 +524,11 @@ function extractFromMediainfo(tags, mediainfo, warnings, fileName, fileList, sou
|
|||
!("remux" in tags) &&
|
||||
!("encoding_settings" in video) && !("writing_library" in video) &&
|
||||
video.codec_id === "V_MPEG4/ISO/AVC" && video.format_profile === "High@L4.1" &&
|
||||
"format_settings" in video && video.format_settings.match(/CABAC \/ [234] Ref Frames/) !== null && width === 1920 && height === 1080 &&
|
||||
(
|
||||
("format_settings" in video && video.format_settings.match(/CABAC \/ [234] Ref Frames/) !== null) ||
|
||||
(video.format_settings_cabac === "Yes" && "format_settings_reframes" in video && video.format_settings_reframes.match(/^[234] frames/) !== null)
|
||||
)
|
||||
&& width === 1920 && height === 1080 &&
|
||||
video.frame_rate_mode === "Constant" &&
|
||||
(!("bits_pixel_frame" in video) || parseFloat(video.bits_pixel_frame) > 0.5)
|
||||
){
|
||||
|
|
Loading…
Reference in a new issue