diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2020-04-02 16:17:26 -0400 |
|---|---|---|
| committer | Shyam Sunder <sgsunder1@gmail.com> | 2020-04-03 13:11:54 -0400 |
| commit | 99a69333e656fcbf7acf55f8593cf2a70781fc6d (patch) | |
| tree | 1b858da2bdb7f5af9e39ee95358b569649ddd016 /doc/API.md | |
| parent | 08e62ec8853d7564ac718471be7fd32739a0bf90 (diff) | |
server/posts/upload: Add youtube-dl functionality
allows for video-based posts to be created by using youtube-dl
on the server. Access is controlled with the 'uploads:use_downloader'
permission.
Diffstat (limited to 'doc/API.md')
| -rw-r--r-- | doc/API.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -145,7 +145,10 @@ way. The files, however, should be passed as regular fields appended with a `Url` suffix. For example, to use `http://example.com/file.jpg` in an API that accepts a file named `content`, the client should pass `{"contentUrl":"http://example.com/file.jpg"}` as a part of the JSON message -body. +body. When creating or updating post content using this method, the server can +also be configured to employ [youtube-dl](https://github.com/ytdl-org/youtube-dl) +to download content from popular sites such as youtube, gfycat, etc. Access to +youtube-dl can be configured with the `'uploads:use_downloader'` permission Finally, in some cases the user might want to reuse one file between the requests to save the bandwidth (for example, reverse search + consecutive |