diff --git a/app/src/main/java/com/google/android/youtube/pro/MainActivity.java b/app/src/main/java/com/google/android/youtube/pro/MainActivity.java index 52e0dd0..c0d64f2 100644 --- a/app/src/main/java/com/google/android/youtube/pro/MainActivity.java +++ b/app/src/main/java/com/google/android/youtube/pro/MainActivity.java @@ -82,9 +82,9 @@ public void onPageFinished(WebView p1, String url) { web.loadUrl("javascript:(function () { var script = document.createElement('script'); script.src='https://cdn.jsdelivr.net/npm/ytpro'; document.body.appendChild(script); })();"); web.loadUrl("javascript:(function () { var script = document.createElement('script'); script.src='https://cdn.jsdelivr.net/npm/ytpro/bgplay.js'; document.body.appendChild(script); })();"); - if(dL){ + if(dl){ web.loadUrl("javascript:(function () {window.location.hash='download';})();"); - dL=false; + //dL=false; } if(!url.contains("#bgplay") && isPlaying){ isPlaying=false;