diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-04-14 19:28:30 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-05-06 14:24:00 -0500 |
commit | 0ee1aabc74c4ca200dc3bd56ccaa40dbc3ecab59 (patch) | |
tree | 93ef9588fc3fbb12875fb7fe676f4ba5b66456a0 /youtube/templates/local_playlist.html | |
parent | ccb3392e1d8def39125a8f83f69c11488f39d118 (diff) | |
download | yt-local-0ee1aabc74c4ca200dc3bd56ccaa40dbc3ecab59.tar.lz yt-local-0ee1aabc74c4ca200dc3bd56ccaa40dbc3ecab59.tar.xz yt-local-0ee1aabc74c4ca200dc3bd56ccaa40dbc3ecab59.zip |
Add local playlist export option
Temporary workaround for #61
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/templates/local_playlist.html')
-rw-r--r-- | youtube/templates/local_playlist.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/youtube/templates/local_playlist.html b/youtube/templates/local_playlist.html index 765ac66..64abcf4 100644 --- a/youtube/templates/local_playlist.html +++ b/youtube/templates/local_playlist.html @@ -9,6 +9,20 @@ {% block main %} <div class="playlist-metadata"> <h2 class="play-title">{{ playlist_name }}</h2> + + <div id="export-options"> + <form id="playlist-export" method="post"> + <select id="export-type" name="export_format"> + <option value="json">JSON</option> + <option value="ids">Video id list (txt)</option> + <option value="urls">Video url list (txt)</option> + </select> + <button type="submit" id="playlist-export-button" name="action" value="export">Export</button> + </form> + </div> + </div> + + <div class="playlist-metadata" id="video-remove-container"> <input type="hidden" name="playlist_page" value="{{ playlist_name }}" form="playlist-edit"> <button class="play-action" type="submit" id="playlist-remove-button" name="action" value="remove" form="playlist-edit" formaction="">Remove from playlist</button> </div> |