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

get high-res preview also from videos

This commit is contained in:
akaessens 2020-08-31 17:10:10 +02:00
parent 643ac62788
commit 2faf8aa003

View File

@ -215,8 +215,8 @@ public class FbScraper extends AsyncTask<Void, Void, Void> {
try { try {
// possibly get higher res image from event header // possibly get higher res image from event header
image_url = document.select("img[class*=scaledImageFit]") image_url = document.select("div[id=event_header_primary]")
.first().attr("src"); .select("img").first().attr("src");
} catch (Exception e) { } catch (Exception e) {
// ignore // ignore