bbappserver / hydrus-userpatch

Community patches for 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/
Do What The F*ck You Want To Public License
0 stars 0 forks source link

API: More add_url control #14

Open bbappserver opened 5 years ago

bbappserver commented 5 years ago

External tool have information hydrus doesn't about certain URLs. For example in getting video from the Twitter API (which hydrus can't do with the scraper), an external tool knows the source url of the tweet, the tag, and the download url of the actual media.

So add url should have those things as parameters

{
"tags":["tag 1","tag 2",],
"urls":{
   "download":"fileserverurl",
   "source":"tweet_url"
    }
}

Tags could of course be added seperatly after, but it would be better to have a way to do it atomically.