hikikomoriphoenix / Beedio

Android app that lets you find downloadable videos as you browse the web. Allows queuing downloads. Also includes bookmarking and ad-blocking features for easier browsing experience.
GNU General Public License v2.0
148 stars 44 forks source link

Remove Youtube #54

Open abidyoung opened 5 years ago

abidyoung commented 5 years ago

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

SamraMehboob commented 4 years ago

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

MarcoPolo267 commented 3 years ago

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);
                }
puppykickr commented 3 years ago

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 notifications@github.com 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 .