1
0
mirror of https://github.com/akaessens/NoFbEventScraper synced 2025-02-16 11:31:15 +01:00

add error message as description

This commit is contained in:
akaessens 2020-09-27 15:09:34 +02:00
parent f579094cec
commit 3ba50f3df7

View File

@ -178,6 +178,7 @@ public class FbEventScraper extends AsyncTask<Void, Void, Void> {
} catch (JSONException | NullPointerException e) { } catch (JSONException | NullPointerException e) {
name = document.title(); name = document.title();
description = scraper.main.get().getString(R.string.error_scraping);
try { try {
image_url = document.select("div[id*=event_header]") image_url = document.select("div[id*=event_header]")
.select("img").first().attr("src"); .select("img").first().attr("src");