diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-07-08 18:38:06 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-07-08 18:40:39 -0700 |
commit | 52835db0a83e071ffe72be80fa68445c370b47cb (patch) | |
tree | 1162c190d1ccfb5e5e86f1af2587728f4d03f115 /youtube/youtube.py | |
parent | f4024573dcbd4a19e7138814bbc54ac0a653f3d3 (diff) | |
download | yt-local-52835db0a83e071ffe72be80fa68445c370b47cb.tar.lz yt-local-52835db0a83e071ffe72be80fa68445c370b47cb.tar.xz yt-local-52835db0a83e071ffe72be80fa68445c370b47cb.zip |
add support for viewing local playlists
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' |