aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 1e3e93a..0ca3778 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -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: