Fix regex match
This commit is contained in:
parent
ef2d63c826
commit
fdd1a003c0
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name AnimeBytes Mediainfo Improvements
|
||||
// @author WeebDataHoarder
|
||||
// @version 1.8.4
|
||||
// @version 1.8.5
|
||||
// @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
|
||||
|
@ -999,7 +999,7 @@ if(allowedVideoTypes.indexOf(torrentType.replace("Live Action ", "")) !== -1){
|
|||
}
|
||||
}
|
||||
|
||||
const ratio = ("stream_size" in audio) ? parseFloat(audio.stream_size.match(/\((?<percentage>[0-9.]+)\)%$/).groups.percentage) : null;
|
||||
const ratio = ("stream_size" in audio) ? parseFloat(audio.stream_size.match(/\((?<percentage>[0-9.]+)%\)$/).groups.percentage) : null;
|
||||
|
||||
if(!("remux" in tags) && audio.format === "PCM"){
|
||||
warnings.audio.push(["warning", "BLOAT: Audio track #"+(index+1)+" is uncompressed PCM."]);
|
||||
|
|
Loading…
Reference in a new issue