aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/common.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-10-18 01:41:53 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-10-18 01:41:53 -0700
commit23dfb97309282d96d05644eb8960f3c8a9b05393 (patch)
tree5beb8a722d84a834dfcd660912042423247937cc /youtube/common.py
parent697d6e3583741faca197a238eac70710252d1ccb (diff)
downloadyt-local-23dfb97309282d96d05644eb8960f3c8a9b05393.tar.lz
yt-local-23dfb97309282d96d05644eb8960f3c8a9b05393.tar.xz
yt-local-23dfb97309282d96d05644eb8960f3c8a9b05393.zip
Support for search filters: upload date, type, duration
Diffstat (limited to 'youtube/common.py')
-rw-r--r--youtube/common.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/youtube/common.py b/youtube/common.py
index ae2ada1..54ac70f 100644
--- a/youtube/common.py
+++ b/youtube/common.py
@@ -317,6 +317,57 @@ header_template = Template('''
<input type="radio" id="sort_rating" name="sort" value="1">
<label for="sort_rating">Rating</label>
+
+
+ <h3>Upload date</h3>
+ <input type="radio" id="time_any" name="time" value="0">
+ <label for="time_any">Any</label>
+
+ <input type="radio" id="time_last_hour" name="time" value="1">
+ <label for="time_last_hour">Last hour</label>
+
+ <input type="radio" id="time_today" name="time" value="2">
+ <label for="time_today">Today</label>
+
+ <input type="radio" id="time_this_week" name="time" value="3">
+ <label for="time_this_week">This week</label>
+
+ <input type="radio" id="time_this_month" name="time" value="4">
+ <label for="time_this_month">This month</label>
+
+ <input type="radio" id="time_this_year" name="time" value="5">
+ <label for="time_this_year">This year</label>
+
+ <h3>Type</h3>
+ <input type="radio" id="type_any" name="type" value="0">
+ <label for="type_any">Any</label>
+
+ <input type="radio" id="type_video" name="type" value="1">
+ <label for="type_video">Video</label>
+
+ <input type="radio" id="type_channel" name="type" value="2">
+ <label for="type_channel">Channel</label>
+
+ <input type="radio" id="type_playlist" name="type" value="3">
+ <label for="type_playlist">Playlist</label>
+
+ <input type="radio" id="type_movie" name="type" value="4">
+ <label for="type_movie">Movie</label>
+
+ <input type="radio" id="type_show" name="type" value="5">
+ <label for="type_show">Show</label>
+
+
+ <h3>Duration</h3>
+ <input type="radio" id="duration_any" name="duration" value="0">
+ <label for="duration_any">Any</label>
+
+ <input type="radio" id="duration_short" name="duration" value="1">
+ <label for="duration_short">Short (< 4 minutes)</label>
+
+ <input type="radio" id="duration_long" name="duration" value="2">
+ <label for="duration_long">Long (> 20 minutes)</label>
+
</div>
</div>
</div>