Adding imgur client id to the config file

This commit is contained in:
Michael Lazar
2017-06-07 22:40:45 -04:00
parent fd6e6cc8ec
commit e964cb7ca3
4 changed files with 239 additions and 155 deletions

View File

@@ -60,6 +60,9 @@ class Terminal(object):
self._display = None
self._mailcap_dict = mailcap.getcaps()
# Hack to allow setting the Imgur OAuth cred in the config file
mime_parsers.ImgurApiMIMEParser.client_id = config['imgur_client_id']
@property
def up_arrow(self):
symbol = '^' if self.config['ascii'] else ''