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/16/head
parent
b2937d3c94
commit
b9270e8e2a
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue