1
0
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:
akaessens
2020-08-26 16:45:33 +02:00
parent 98ab900b3d
commit d60717f0b7
4 changed files with 9 additions and 16 deletions

View File

@ -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");