From 2faf8aa003281121d375e3b2d817e4b2782f3f8d Mon Sep 17 00:00:00 2001 From: akaessens <24660231+akaessens@users.noreply.github.com> Date: Mon, 31 Aug 2020 17:10:10 +0200 Subject: [PATCH] get high-res preview also from videos --- app/src/main/java/com/akdev/nofbeventscraper/FbScraper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/akdev/nofbeventscraper/FbScraper.java b/app/src/main/java/com/akdev/nofbeventscraper/FbScraper.java index e6446e8..40067f3 100644 --- a/app/src/main/java/com/akdev/nofbeventscraper/FbScraper.java +++ b/app/src/main/java/com/akdev/nofbeventscraper/FbScraper.java @@ -215,8 +215,8 @@ public class FbScraper extends AsyncTask { try { // possibly get higher res image from event header - image_url = document.select("img[class*=scaledImageFit]") - .first().attr("src"); + image_url = document.select("div[id=event_header_primary]") + .select("img").first().attr("src"); } catch (Exception e) { // ignore