Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.25k stars 160 forks source link

MEMS plugin can't get information from source tag #971

Closed swirocota closed 5 months ago

swirocota commented 6 months ago

Lanraragi Version Docker, 0.9.0

Detail If source tag have 'http://' or 'https://', the plugin can't get gallery id and token.

image image As you can see, there is source tag. But the plugin reported that it couldn't get gallery id

Suggestion

In LANraragi/lib/LANraragi/Plugin/Metadata/MEMS.pm image

$lrr_info->{existing_tags} =~ /source:(?:https?:\/\/)?e(?:x|-)hentai\.org\/g\/(\d+)\/([0-9a-z]+)(?:\/)?/i
Difegue commented 6 months ago

source tags normally shouldn't contain the protocol; it's easy to update the regex to accomodate I guess, but I wouldn't want to encourage that.. Also you'd need to update every plugin that can do source lookups

Doraemoe commented 5 months ago

I believe this was fixed in #921. It should work if you use nightly build.