LANraragi icon indicating copy to clipboard operation
LANraragi copied to clipboard

EH metadata plugin, search favorites

Open polak14 opened this issue 2 years ago • 3 comments

How about adding an option to look for EH galleries in your favorites instead of searching the whole site? That should also remove the need to search for a specific language and possibly give more accurate results for the people that tend to favorite everything they download. I tested it on 5000 galleries and it worked like a charm. $URL = $domain . "/favorites.php?favcat=all&f_search=" . uri_escape_utf8( qw(") . $title . qw(") ); . "&sn=on"; '"&sn=on"' is for searching names only.

Additionally for yet another option, stripping the galleryID from files downloaded via H@H like so $title =~ s/ \[[0-9]+\]//g;

Any suggestions regarding the regex are welcome, I'm not very confident with that.

polak14 avatar Jul 17 '22 15:07 polak14

The favorite search part looks easy enough to implement indeed!
Looks like a simple one-option job, that uses the URL you specified instead of the default one when it's enabled.

The regex looks fine to me, I don't think it'd need to be more complex. Although I'll admit I don't think it's that useful when you can already use the existing regexparse plugin, which will get rid of it as well.

Difegue avatar Jul 19 '22 22:07 Difegue

How would you use the regexparse plugin in this case? I am stripping the galleryID from the title so that the search doesn't include "[1893933]" and not return results.

polak14 avatar Jul 21 '22 23:07 polak14

You'd use it before running the EH plugin, so that it'd modify the title to remove the galleryID.
I guess it's less convenient than having it done automatically on the EH side, though..

Difegue avatar Jul 24 '22 00:07 Difegue