X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Frainbow.py;h=2065b7484a3e2b973500b815f8b2f25f533fc76b;hp=114e42514d7fe71aa3930041bc84dee75975ba87;hb=7595581b0e4bc9a75e0e605af6d4d48fa6abc596;hpb=9b48127c4646244c7893350c3522c1fa6b9a742a;ds=sidebyside diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 114e425..2065b74 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -242,6 +242,8 @@ def init(args): set_config('IMAGE_ON_TERM', str(c['IMAGE_ON_TERM'])) # Use 24 bit color c['24BIT'] = args.color_24bit + # Resize images based on the current terminal size + set_config('IMAGE_RESIZE_TO_FIT', str(c.get('IMAGE_RESIZE_TO_FIT', False))) # Check type of ONLY_LIST and IGNORE_LIST if not isinstance(c['ONLY_LIST'], list): printNicely(red('ONLY_LIST is not a valid list value.')) @@ -868,7 +870,7 @@ def mute(): rel = t.mutes.users.create(screen_name=screen_name[1:]) if isinstance(rel, dict): printNicely(green(screen_name + ' is muted.')) - c['IGNORE_LIST'] += [unc(screen_name)] + c['IGNORE_LIST'] += screen_name c['IGNORE_LIST'] = list(set(c['IGNORE_LIST'])) else: printNicely(red(rel))