From e38f90757a533b27439ad1b1920551045110be81 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Thu, 10 Sep 2015 20:39:50 +0200 Subject: [PATCH] Made youtu.be links be vieweble through NewPipe, and fixed InfoBar design. --- .../java/org/schabi/newpipe/youtube/YoutubeService.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/youtube/YoutubeService.java b/app/src/main/java/org/schabi/newpipe/youtube/YoutubeService.java index a8236278c..3dca3811d 100644 --- a/app/src/main/java/org/schabi/newpipe/youtube/YoutubeService.java +++ b/app/src/main/java/org/schabi/newpipe/youtube/YoutubeService.java @@ -39,10 +39,7 @@ public class YoutubeService implements StreamingService { } @Override public boolean acceptUrl(String videoUrl) { - if(videoUrl.contains("youtube")) { - return true; - } else { - return false; - } + return videoUrl.contains("youtube") || + videoUrl.contains("youtu.be"); } }