This commit is contained in:
Mattia 2020-08-15 15:08:04 +02:00
parent 13b4463f73
commit f8eaa278b3
1 changed files with 7 additions and 3 deletions

View File

@ -26,9 +26,13 @@ class PlayerSource {
if (_sts != null) {
return _sts;
}
var val = RegExp(r'(?<=invalid namespace.*?;[\w+\s]+=)\d+')
.stringMatch(_root)
?.nullIfWhitespace;
var val = RegExp(r'(?<=invalid namespace.*?;[\w\s]+=)\d+')
.stringMatch(_root)
?.nullIfWhitespace ??
RegExp(r'(?<=this\.signatureTimestamp=)\d+"')
.stringMatch(_root)
?.nullIfWhitespace;
if (val == null) {
throw FatalFailureException('Could not find sts in player source.');
}