mirror of
https://github.com/akaessens/NoFbEventScraper
synced 2025-06-05 23:29:13 +02:00
switch to m.facebook scraping
more descriptive toolbar button string update unit tests
This commit is contained in:
@ -202,18 +202,6 @@ public class MainActivity extends AppCompatActivity {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean isNumeric(String strNum) {
|
||||
if (strNum == null) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
double d = Double.parseDouble(strNum);
|
||||
} catch (NumberFormatException e) {
|
||||
//e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
String checkURI(String str)
|
||||
{
|
||||
try {
|
||||
@ -223,7 +211,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
if (str.matches(".*(facebook.com/events/[0-9]*).*")) {
|
||||
return str.replaceAll(".*(facebook.com/events/[0-9]*).*",
|
||||
"https://www.$1");
|
||||
"https://m.$1");
|
||||
}
|
||||
else {
|
||||
error("Error: Invalid URL");
|
||||
|
Reference in New Issue
Block a user