rename env['fields'] to env['parameters'] and rename fields to parameters in general

This commit is contained in:
James Taylor
2019-01-06 01:33:52 -08:00
parent eea16e5ac3
commit bb2d40ac83
9 changed files with 38 additions and 39 deletions

View File

@@ -229,14 +229,14 @@ music_list_table_row = Template('''<tr>
<td>$value</td>
''')
def get_watch_page(env, start_response):
video_id = env['fields']['v'][0]
video_id = env['parameters']['v'][0]
if len(video_id) < 11:
start_response('404 Not Found', ())
return b'Incomplete video id (too short): ' + video_id.encode('ascii')
start_response('200 OK', [('Content-type','text/html'),])
lc = common.default_multi_get(env['fields'], 'lc', 0, default='')
lc = common.default_multi_get(env['parameters'], 'lc', 0, default='')
if settings.route_tor:
proxy = 'socks5://127.0.0.1:9150/'
else: