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
1 changed files with 4 additions and 6 deletions

View File

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