hydrusnetwork / hydrus

A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.
http://hydrusnetwork.github.io/hydrus/
Other
2.37k stars 156 forks source link

Use parsing system to generate note name #1505

Open luckydonald opened 9 months ago

luckydonald commented 9 months ago

When writing parsers for websites with the same api (think danbooru boorus, philomena based boorus) it would be great to be able to generate the note name from the document by using any of the parsers, for the title, similar to how you do for tags or the note's content.

That way it would be easy to make notes like <url's domain name (^https?://([^/]+).*$ -> \1)> + " description", resulting in "derpibooru.org description", etc.

luckydonald commented 9 months ago

While already touching it, probably doing the same for the Headers would make sense, too.