diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-07-25 22:43:55 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-07-25 22:43:55 -0700 |
commit | 182a2f3bdbc8f7a349c7eb407b21d68a8d664c86 (patch) | |
tree | d0ff20c4db3efb136408dbb746f85a1e0a235e06 /youtube/common.py | |
parent | 74c96470722b67cdc240da8e3e75f93139afc741 (diff) | |
download | yt-local-182a2f3bdbc8f7a349c7eb407b21d68a8d664c86.tar.lz yt-local-182a2f3bdbc8f7a349c7eb407b21d68a8d664c86.tar.xz yt-local-182a2f3bdbc8f7a349c7eb407b21d68a8d664c86.zip |
options for sorting when searching
Diffstat (limited to 'youtube/common.py')
-rw-r--r-- | youtube/common.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/youtube/common.py b/youtube/common.py index 5af33a0..41b5f63 100644 --- a/youtube/common.py +++ b/youtube/common.py @@ -295,6 +295,25 @@ header_template = Template(''' <form id="site-search" action="/youtube.com/search"> <input type="search" name="query" class="search-box" value="$search_box_value"> <button type="submit" value="Search" class="search-button">Search</button> + <div class="dropdown"> + <button class="dropdown-label">Options</button> + <div class="css-sucks"> + <div class="dropdown-content"> + <h3>Sort by</h3> + <input type="radio" id="sort_relevance" name="sort" value="0"> + <label for="sort_relevance">Relevance</label> + + <input type="radio" id="sort_upload_date" name="sort" value="2"> + <label for="sort_upload_date">Upload date</label> + + <input type="radio" id="sort_view_count" name="sort" value="3"> + <label for="sort_view_count">View count</label> + + <input type="radio" id="sort_rating" name="sort" value="1"> + <label for="sort_rating">Rating</label> + </div> + </div> + </div> </form> </div> <div id="header-right"> |