Change variable names
For a better understanding of what is going on
This commit is contained in:
parent
07f6d0f149
commit
2ccae841d6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue