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
1 changed files with 2 additions and 2 deletions

View File

@ -215,8 +215,8 @@ public class FbScraper extends AsyncTask<Void, Void, Void> {
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