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
parent
b2937d3c94
commit
7a12310bb4
|
|
@ -49,7 +49,7 @@ export default class Philomena extends ScrapeEngineBase {
|
||||||
post.rating = "unsafe";
|
post.rating = "unsafe";
|
||||||
|
|
||||||
// Set resolution
|
// 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) {
|
if (resStr) {
|
||||||
const res = parseResolutionString(resStr);
|
const res = parseResolutionString(resStr);
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue