mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-24 00:50:32 +00:00
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
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user