diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-07-01 17:33:12 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-07-01 21:04:33 -0500 |
commit | acfa31ff5991c2a7b6c510c45f2481db461970c7 (patch) | |
tree | 043c743278b2149eaef3d788427998dbda5cd3c5 /youtube/templates | |
parent | 4a9c1422e74e017056d0578bc1ae67e4ebd5ea01 (diff) | |
download | yt-local-acfa31ff5991c2a7b6c510c45f2481db461970c7.tar.lz yt-local-acfa31ff5991c2a7b6c510c45f2481db461970c7.tar.xz yt-local-acfa31ff5991c2a7b6c510c45f2481db461970c7.zip |
Change search url path to match the YouTube path
Fixes #67
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/base.html | 4 | ||||
-rw-r--r-- | youtube/templates/search.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/youtube/templates/base.html b/youtube/templates/base.html index 2278a02..8a0238a 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -20,8 +20,8 @@ <nav class="home"> <a href="/youtube.com" id="home-link">YT Local</a> </nav> - <form class="form" id="site-search" action="/youtube.com/search"> - <input type="search" name="query" class="search-box" value="{{ search_box_value }}" + <form class="form" id="site-search" action="/youtube.com/results"> + <input type="search" name="search_query" class="search-box" value="{{ search_box_value }}" {{ "autofocus" if request.path == "/" else "" }} placeholder="Type to search..."> <button type="submit" value="Search" class="search-button">Search</button> <!-- options --> diff --git a/youtube/templates/search.html b/youtube/templates/search.html index 4238d70..7f8ad26 100644 --- a/youtube/templates/search.html +++ b/youtube/templates/search.html @@ -28,7 +28,7 @@ <!-- /video item --> <footer class="pagination-container"> <nav class="pagination-list"> - {{ common_elements.page_buttons(estimated_pages, '/https://www.youtube.com/search', parameters_dictionary) }} + {{ common_elements.page_buttons(estimated_pages, '/https://www.youtube.com/results', parameters_dictionary) }} </nav> </footer> {% endblock main %} |