Update Philomena.ts

Fix resolution grabbing extra data, on video/animated images specifically.
This is only a visual issue and not a problem for importing.
pull/17/head
GlobalGit3 2023-07-07 10:15:25 -05:00 committed by Neo
parent b2937d3c94
commit 7a12310bb4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export default class Philomena extends ScrapeEngineBase {
post.rating = "unsafe";
// Set resolution
const resStr = (<HTMLElement>document.querySelector("span[class='image-size']"))?.innerText?.split(" ")[0];
const resStr = (<HTMLElement>document.querySelector("span[class='image-size']"))?.innerText?.match(/(\d+x\d+)/)?.[0];
if (resStr) {
const res = parseResolutionString(resStr);
if (res) {