LucasLeandro1204 / Pornsearch

Easy way to search for porn content!
MIT License
329 stars 68 forks source link

Queries with multiple words are crashing with the Pornhub module #27

Open ratouney opened 5 years ago

ratouney commented 5 years ago

When I tried to make a search with multiple tags it crashed telling me that "replace" was undefined.

To be precise, it's in Porhub.js at line 75.

   thumb: data.find('img').attr('data-mediumthumb').replace(/\([^)]*\)/g, ''),

I'd guess the regex in the Gif part would do the same error but I'm not using it...

In any case, for now I just had to remove the replace part and deal with it...

LucasLeandro1204 commented 5 years ago

@ratouney I could not reproduce the error, but I imagine what's the cause, and it's not related to search with multiple words. It's fixed (or at least should be) now, may you give it a try? Thanks =)

Already published at NPM, I'll make a release here asap.