Cleanup /String on some strange mediainfos [abt-397323]
This commit is contained in:
parent
a238257451
commit
9974aae8e2
|
@ -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
|
||||
|
|
|
@ -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(/[ \/*]/g, "_").replace(/[(),]/g, "").replace(/\/String$/g, "");
|
||||
currentOb[key] = matches.groups.value.trim();
|
||||
}else{
|
||||
throw "Invalid entry: " + cleanLine;
|
||||
|
|
Loading…
Reference in a new issue