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
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;