aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-01-06 01:33:52 -0800
committerJames Taylor <user234683@users.noreply.github.com>2019-01-06 01:33:52 -0800
commitbb2d40ac83f222678ed5b4265355b9f146f2ba3e (patch)
tree836262b08777a3ad9e23c700d1c4f81d45ffe73c /youtube/watch.py
parenteea16e5ac32696ea711fbc3846c113ccdfd2928b (diff)
downloadyt-local-bb2d40ac83f222678ed5b4265355b9f146f2ba3e.tar.lz
yt-local-bb2d40ac83f222678ed5b4265355b9f146f2ba3e.tar.xz
yt-local-bb2d40ac83f222678ed5b4265355b9f146f2ba3e.zip
rename env['fields'] to env['parameters'] and rename fields to parameters in general
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: