rename env['fields'] to env['parameters'] and rename fields to parameters in general
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user