diff options
Diffstat (limited to 'youtube/youtube.py')
-rw-r--r-- | youtube/youtube.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube/youtube.py b/youtube/youtube.py index 01e956a..3b0e845 100644 --- a/youtube/youtube.py +++ b/youtube/youtube.py @@ -40,6 +40,10 @@ def youtube(env, start_response): start_response('200 OK', (('Content-type','text/html'),) ) return channel.get_user_page(path[6:], query_string=query_string).encode() + elif path.startswith("/playlists"): + start_response('200 OK', (('Content-type','text/html'),) ) + return local_playlist.get_playlist_page(path[10:], query_string=query_string).encode() + else: start_response('404 Not Found', () ) return b'404 Not Found' |