1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 16:40:32 +00:00

Change variable names

For a better understanding of what is going on
This commit is contained in:
Mauricio Colli 2017-02-26 07:47:13 -03:00
parent 07f6d0f149
commit 2ccae841d6

View File

@ -148,14 +148,12 @@ public class YoutubeStreamUrlIdHandler implements UrlIdHandler {
@Override
public boolean acceptUrl(String videoUrl) {
String originalUrl = videoUrl;
videoUrl = videoUrl.toLowerCase();
if(videoUrl.contains("youtube") ||
videoUrl.contains("youtu.be")) {
String lowercaseUrl = videoUrl.toLowerCase();
if(lowercaseUrl.contains("youtube") ||
lowercaseUrl.contains("youtu.be")) {
// bad programming I know
try {
getId(originalUrl);
getId(videoUrl);
return true;
} catch (Exception e) {
return false;