1
Files
irssi-scripts/web_link_saver
eleksir 2105442db7 img-save.pl:
* fix download condition
* when getting memcached keys we use  only first  slab in list, now all slabs
  are used, so we get full list of keys
2018-03-17 23:27:38 +03:00
..
2018-03-17 23:27:38 +03:00

Script that greps http(s) links from irc conversations and put 'em to memcache on 127.0.0.1:11211

img-save.pl

Sample memcache clients that loops every 30 seconds over stored memcache keys, downloads images and cleans up processed links

purpose of these scripts

irssi api is not thread-safe. If you need asynchronously process something in irssi the only way to make it by using threads. But using threads cause memory leak and possibly something more bad (but i didn't observe some other side effects). Another way to make things asynchronously is to store data that should be processed in some fast storage and run separate process that hammer data from this storage.

Downloading images is time consuming task. During data transfer irssi itself becomes unresponsitive.