Beedio
Beedio copied to clipboard
Remove Youtube
How to completely remove youtube. that this downloader can't download from youtube
Hi I want to block Youtube as it's not legal to download video from Youtube. Did you find the solution. Please let me know thanks
In BrowserWindow.java add this:
@Override
public void onPageStarted(final WebView view, final String url, Bitmap favicon) {
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public void run() {
TextView urlBox = BrowserWindow.this.view.findViewById(R.id.urlBox);
if(url.contains("youtube")){
Toast.makeText(getActivity(), "Sorry can not open this link!", Toast.LENGTH_SHORT).show();
getActivity().finishAffinity();
}else{
urlBox.setText(url);
BrowserWindow.this.url = url;
}
}
});
loadingPageProgress.setVisibility(View.VISIBLE);
setupVideosFoundHUDText();
super.onPageStarted(view, url, favicon);
}
Actually, it is only against Youtube's terms of service to download from Youtube.
It is not 'illegal'.
All this means to you is that any app that does allow downloading from there will not be allowed onto the Google Play Store, because Youtube is owned by Google.
There are various other apps that are legal that allow downloading from Youtube, they are just not on the Play Store.
Grant Ryan Swan (puppykicker)
On Thu, Nov 26, 2020, 14:14 Rajesh Bedi [email protected] wrote:
In BrowserWindow.java add this:
@override https://github.com/override public void onPageStarted(final WebView view, final String url, Bitmap favicon) { new Handler(Looper.getMainLooper()).post(new Runnable() { @override https://github.com/override public void run() { TextView urlBox = BrowserWindow.this.view.findViewById(R.id.urlBox); if(url.contains("youtube")){ Toast.makeText(getActivity(), "Sorry can not open this link!", Toast.LENGTH_SHORT).show(); getActivity().finishAffinity(); }else{ urlBox.setText(url); BrowserWindow.this.url = url; } } });
loadingPageProgress.setVisibility(View.VISIBLE); setupVideosFoundHUDText(); super.onPageStarted(view, url, favicon); }
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hikikomoriphoenix/Beedio/issues/54#issuecomment-734448460, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKWIG733DK5ZXXRM7NZMI33SR2SHRANCNFSM4H2RJBEQ .