oysttyer extension to automatically save twitter media attachments to a directory | BSD-0 license
This repository has been archived on 2020-11-07. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Ekho b45ad27714 Add option to disable saving thumbnails
Also added curl timeout to prevent hanging indefinitly
2020-11-07 11:23:54 +00:00
.gitignore init, seems mostly function 2018-09-19 21:02:00 +00:00
LICENSE update License 2019-02-26 16:32:50 +00:00
mediadir.pl Add option to disable saving thumbnails 2020-11-07 11:23:54 +00:00
README.md added config for rate limit 2018-11-25 21:30:56 +00:00

oysttyer mediadir

oysttyer extension to automatically save twitter media attachments to a directory.

Usage

set extpref_mediadir=/full/path/to/dir in your .oystterrc file, then load the extension as normal

there is also extpref_mediadir_ratelimit=200K that can be set to adjust the download rate limiting, value follows curl(1) --limit-rate

Drawbacks / Known issues

  • the media file is downloaded before displaying the tweet, with larger files like video this may make the tweets delayed on slower connections
  • there is also the risk of never catching up on slower connections with media heavy feeds, not sure what will happen after some time in this case.
  • it also uses what may be a noticable amount of disk space after a while (~200 follow, >30GB/mo), if you run out this will error (or maybe crash?)
  • currently if there is an issue with the download nothing is done, this may lead to some of the downloaded file being left empty or corrupt if the download fails (killed, internet drops, etc)