page_name = toks_url[1]
if 'thumbnails' == page_name:
self._send_thumbnail(FilePathStr(toks_url[2]))
- if 'dl' == page_name:
+ elif 'dl' == page_name:
self._send_or_download_video(VideoId(toks_url[2]),
parse_qs(url.query))
- if 'videos' == page_name:
+ elif 'videos' == page_name:
self._send_videos_index()
- if 'query' == page_name:
+ elif 'query' == page_name:
self._send_query_page(QueryId(toks_url[2]))
else: # e.g. for /
self._send_queries_index_and_search()