Skip to content

Commit e38f907

Browse files
author
Christian Schabesberger
committed
Made youtu.be links be vieweble through NewPipe, and fixed InfoBar design.
1 parent 7a45e3d commit e38f907

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/youtube/YoutubeService.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ public Class getSearchEngineClass() {
3939
}
4040
@Override
4141
public boolean acceptUrl(String videoUrl) {
42-
if(videoUrl.contains("youtube")) {
43-
return true;
44-
} else {
45-
return false;
46-
}
42+
return videoUrl.contains("youtube") ||
43+
videoUrl.contains("youtu.be");
4744
}
4845
}

0 commit comments

Comments
 (0)