1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-24 20:15:16 +01:00

Made youtu.be links be vieweble through NewPipe, and fixed InfoBar design.

This commit is contained in:
Christian Schabesberger 2015-09-10 20:39:50 +02:00
parent 7a45e3d0c5
commit e38f90757a

View File

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