media_fetch plugin

Installation

shell
Copied!
npm install --save @sugarcube/plugin-media

Usage

Fetch images and documents from _sc_media. Downloaded targets are added to the _sc_downloads collection. To fetch videos use the media_youtubedl plugin.

Configuration Options:

  • media.data_dir: Specify the target download directory. Defaults to ./data.
  • media.fetch_types: Fetch files of this media type. Separate different types using a comma. Defaults to "image,document".

Metrics:

  • total: The total number of files fetched.
  • existing: The number of files that were already previously fetched.
  • success: The number of files that were successfully fetched.
  • fail: The number of files that failed to fetch.
  • new: The number of new files out of the number of successfully fetched files.