mirror of https://github.com/sloumdrone/burrow
Changed behavior for html files served over gopher vs http
This commit is contained in:
parent
54303bb5f8
commit
49e1caac1a
6
gui.py
6
gui.py
|
@ -261,6 +261,7 @@ class GUI:
|
|||
|
||||
if not response:
|
||||
# send error to screen
|
||||
print('ERROR in execute address...')
|
||||
return False
|
||||
|
||||
|
||||
|
@ -402,9 +403,6 @@ class GUI:
|
|||
if x['port'] and x['port'][0] != ':':
|
||||
x['port'] = ':{}'.format(x['port'])
|
||||
|
||||
if x['type'] == 'h':
|
||||
link = 'gopher://{}/{}'.format(x['host'], x['resource'])
|
||||
else:
|
||||
link = 'gopher://{}{}/{}{}'.format(x['host'], x['port'], x['type'], x['resource'])
|
||||
|
||||
tag_name = 'link{}'.format(self.link_count)
|
||||
|
@ -481,7 +479,7 @@ class GUI:
|
|||
|
||||
|
||||
def send_to_screen(self, data, itemtype='1', clear=True):
|
||||
if itemtype == '0':
|
||||
if itemtype in ['0','h']:
|
||||
self.show_text(data)
|
||||
elif itemtype in ['1','3','7']:
|
||||
data = self.parser.parse_menu(data)
|
||||
|
|
Loading…
Reference in New Issue