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.34k stars 153 forks source link

Tags From File URLs #269

Open GoAwayNow opened 4 years ago

GoAwayNow commented 4 years ago

To keep it short and sweet, the idea is, when importing a file url, and not something like a post or gallery, to pull tags from the url, similar to using the url variable (? I can't recall how the client refers to this) in a parser.

bbappserver commented 4 years ago

Really just making the whole http request and response parsable inputs would be fine.

ShadowJonathan commented 4 years ago

@GoAwayNow what exactly do you mean by this? You want to pull specific elements from the URL (like a hostname, query KV items, URI fragment) and be able to automatically apply them as tags? (like the filename: option when importing files)

GoAwayNow commented 4 years ago

I need to figure out how to enable notifications for issues I've created. But yes, that's exactly what I mean. Something like this: hxxps://subdomain.domain.yeet/id/authorname/file.heh being able to produce

creator:authorname
site id:id
filename:file

without going through a parser.

DonaldTsang commented 4 years ago

Sounds useful, however, how would one handle URL parameters? What about URL metadata relating to user accounts or even devices instead of the art/page?

mruac commented 3 years ago

The most useful case for me is preserving the context of the file if the URL has the filename - which mostly is either the name of a meme / reaction or a title of an artwork. This is helpful if there are artists releasing exclusive or better quality works on Discord.

An alternative solution would be downloading the image then import said image while preserving the filename as a tag, but then you'd lose the URL it originated from.

floogulinc commented 3 years ago

@mruac for discord specifically the existing parser can be easily modified to add filename tags.

mruac commented 3 years ago

@mruac for discord specifically the existing parser can be easily modified to add filename tags.

I'm not downloading / watching a discord channel, just some specific pictures from it.