better test hooks

This commit is contained in:
oSumAtrIX 2024-05-04 14:56:33 +02:00
parent 05b5d2254d
commit bc07c0b29b
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
1 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,16 @@ public class Test {
public static String hook(String s) {
if (!s.contains("googlevideo")) return s;
if (true) {
var c2 = new Throwable().getStackTrace()[2].toString();
var c = new Throwable().getStackTrace()[1].toString();
var itag = Uri.parse(s).getQueryParameter("itag");
Logger.printInfo(() -> "Hooked " + c2 + ": itag: " + itag);
Logger.printInfo(() -> "Hooked " + c + ": itag: " + itag);
return s;
}
if (formats == null)
formats = StoryboardRendererRequester.getFormats("piKJAUwCYTo");