From 2ccae841d6611f3975a8f1ede44466560870518b Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Sun, 26 Feb 2017 07:47:13 -0300 Subject: [PATCH] Change variable names For a better understanding of what is going on --- .../services/youtube/YoutubeStreamUrlIdHandler.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java index 0d52612da..055cd5970 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamUrlIdHandler.java @@ -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;