Skip to content

Commit 08a381f

Browse files
only one jsEvaluator instance
1 parent 0e278af commit 08a381f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

bin/youtubeDownloader.apk

18 Bytes
Binary file not shown.

bin/youtubeExtractor.jar

47 Bytes
Binary file not shown.

src/at/huber/youtubeExtractor/YouTubeUriExtractor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public abstract class YouTubeUriExtractor extends AsyncTask<String, String, Spar
3434
private JsEvaluator js;
3535

3636
private volatile String decipheredSignature;
37+
3738
private static String decipherFunctions;
3839
private static String decipherFunctionName;
3940

@@ -350,7 +351,9 @@ private void decipherViaWebView(final String sig) {
350351

351352
@Override
352353
public void run() {
353-
js=new JsEvaluator(calledActivity);
354+
if(js==null){
355+
js=new JsEvaluator(calledActivity);
356+
}
354357
js.evaluate(decipherFunctions + " " + decipherFunctionName + "('" + sig + "');",
355358
new JsCallback() {
356359
@Override

0 commit comments

Comments
 (0)