Beedio icon indicating copy to clipboard operation
Beedio copied to clipboard

Remove Youtube

Open abidyoung opened this issue 5 years ago • 3 comments

How to completely remove youtube. that this downloader can't download from youtube

abidyoung avatar Jun 21 '19 12:06 abidyoung

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

SamraMehboob avatar May 11 '20 05:05 SamraMehboob

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);
               }

MarcoPolo267 avatar Nov 26 '20 19:11 MarcoPolo267

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 .

puppykickr avatar Nov 30 '20 15:11 puppykickr