Cleanup /String on some strange mediainfos [abt-397323]

This commit is contained in:
DataHoarder 2022-08-20 11:51:09 +02:00
parent a238257451
commit 5d1e86f9ad
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
// ==UserScript==
// @name AnimeBytes Mediainfo Improvements
// @author WeebDataHoarder
// @version 1.29.7
// @version 1.29.8
// @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

View file

@ -987,7 +987,7 @@ class Mediainfo {
matches = cleanLine.match(/^(?<key>((?!\s?:).)+)[\s]*:(?<value>.+)$/);
}
if(matches !== null){
let key = matches.groups.key.trim().toLowerCase().replace(/[ \/*]/g, "_").replace(/[(),]/g, "");
let key = matches.groups.key.trim().toLowerCase().replace(/\/string$/g, "").replace(/[ \/*]/g, "_").replace(/[(),]/g, "");
currentOb[key] = matches.groups.value.trim();
}else{
throw "Invalid entry: " + cleanLine;