-
I found that the original plugin can only search for numbers inside square brackets [xxx] as GID, but the GID of the files I downloaded start with a number. I usually use EhViewer to download files, and the file names are typically like this: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
That's the way h@h downloader names archives, and generally the most used format (e.g. chaika downloads or pandaforever by default) |
Beta Was this translation helpful? Give feedback.
-
I really don't want to expose the regex since it's atrociously complex and people will mess it up, but the source code for filename parsing details it fully: |
Beta Was this translation helpful? Give feedback.
-
Ah my bad you're asking about the EH plugin -- I'd recommend throwing the regex into something like regex101 to experiment, but basically I guess for you something like |
Beta Was this translation helpful? Give feedback.
Ah my bad you're asking about the EH plugin -- I'd recommend throwing the regex into something like regex101 to experiment, but basically
/\[([0-9]+)\]/g
just checks if the name starts with a bracketed GID.I guess for you something like
/([0-9]+)-/g
would work.