diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-07-20 01:41:12 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-07-20 01:41:12 -0700 |
commit | d170a75a93e7d722345e328235d62e41cbcd6ae0 (patch) | |
tree | 242ad2e26677a9bcd6640f9f9b2dd68b8d2ab9ab /youtube/common.py | |
parent | f12157cd0203d61bd5ee4f6142562da17f3109a7 (diff) | |
download | yt-local-d170a75a93e7d722345e328235d62e41cbcd6ae0.tar.lz yt-local-d170a75a93e7d722345e328235d62e41cbcd6ae0.tar.xz yt-local-d170a75a93e7d722345e328235d62e41cbcd6ae0.zip |
ability to remove videos from playlist
Diffstat (limited to 'youtube/common.py')
-rw-r--r-- | youtube/common.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/youtube/common.py b/youtube/common.py index e4ab39a..46dfc8d 100644 --- a/youtube/common.py +++ b/youtube/common.py @@ -82,7 +82,7 @@ medium_video_item_template = Template(''' <span class="description">$description</span> <span class="badges">$badges</span> </div> - <input class="item-checkbox" type="checkbox" name="video_info_list" value="$video_info" form="playlist-add"> + <input class="item-checkbox" type="checkbox" name="video_info_list" value="$video_info" form="playlist-edit"> </div> ''') @@ -99,7 +99,7 @@ small_video_item_template = Template(''' <span class="views">$views</span> </div> - <input class="item-checkbox" type="checkbox" name="video_info_list" value="$video_info" form="playlist-add"> + <input class="item-checkbox" type="checkbox" name="video_info_list" value="$video_info" form="playlist-edit"> </div> ''') @@ -298,13 +298,12 @@ header_template = Template(''' </form> </div> <div id="header-right"> - <form id="playlist-add" action="/youtube.com/edit_playlist" method="post" target="_self"> - <input type="hidden" name="action" value="add"> + <form id="playlist-edit" action="/youtube.com/edit_playlist" method="post" target="_self"> <input name="playlist_name" id="playlist-name-selection" list="playlist-options" type="text"> <datalist id="playlist-options"> $playlists </datalist> - <button type="submit" id="playlist-add-button">Add to playlist</button> + <button type="submit" id="playlist-add-button" name="action" value="add">Add to playlist</button> <button type="reset" id="item-selection-reset">Clear selection</button> </form> <a href="/youtube.com/playlists" id="local-playlists">Local playlists</a> |