aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/common.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-08 16:27:08 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-08 18:37:36 -0700
commitf4024573dcbd4a19e7138814bbc54ac0a653f3d3 (patch)
tree5a308fc0bafb66ca3434eb23984b91640506a03c /youtube/common.py
parent26620cbac85f1fa5057e54fa8d91c35d907c0e0f (diff)
downloadyt-local-f4024573dcbd4a19e7138814bbc54ac0a653f3d3.tar.lz
yt-local-f4024573dcbd4a19e7138814bbc54ac0a653f3d3.tar.xz
yt-local-f4024573dcbd4a19e7138814bbc54ac0a653f3d3.zip
add checkbox to medium items
Diffstat (limited to 'youtube/common.py')
-rw-r--r--youtube/common.py77
1 files changed, 42 insertions, 35 deletions
diff --git a/youtube/common.py b/youtube/common.py
index f0d6694..d3e3c0d 100644
--- a/youtube/common.py
+++ b/youtube/common.py
@@ -51,32 +51,37 @@ page_button_template = Template('''<a class="page-button" href="$href">$page</a>
current_page_button_template = Template('''<div class="current-page-button">$page</a>''')
medium_playlist_item_template = Template('''
- <div class="medium-item">
- <a class="playlist-thumbnail-box" href="$url" title="$title">
- <img class="playlist-thumbnail-img" src="$thumbnail">
- <div class="playlist-thumbnail-info">
- <span>$size</span>
- </div>
- </a>
-
- <a class="title" href="$url" title="$title">$title</a>
-
- <div class="stats">$stats</div>
+ <div class="medium-item-box">
+ <div class="medium-item">
+ <a class="playlist-thumbnail-box" href="$url" title="$title">
+ <img class="playlist-thumbnail-img" src="$thumbnail">
+ <div class="playlist-thumbnail-info">
+ <span>$size</span>
+ </div>
+ </a>
+
+ <a class="title" href="$url" title="$title">$title</a>
+
+ <div class="stats">$stats</div>
+ </div>
</div>
''')
medium_video_item_template = Template('''
- <div class="medium-item">
- <a class="video-thumbnail-box" href="$url" title="$title">
- <img class="video-thumbnail-img" src="$thumbnail">
- <span class="video-duration">$duration</span>
- </a>
-
- <a class="title" href="$url">$title</a>
-
- <div class="stats">$stats</div>
-
- <span class="description">$description</span>
- <span class="badges">$badges</span>
+ <div class="medium-item-box">
+ <div class="medium-item">
+ <a class="video-thumbnail-box" href="$url" title="$title">
+ <img class="video-thumbnail-img" src="$thumbnail">
+ <span class="video-duration">$duration</span>
+ </a>
+
+ <a class="title" href="$url">$title</a>
+
+ <div class="stats">$stats</div>
+
+ <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">
</div>
''')
@@ -114,18 +119,20 @@ small_playlist_item_template = Template('''
''')
medium_channel_item_template = Template('''
- <div class="medium-item">
- <a class="video-thumbnail-box" href="$url" title="$title">
- <img class="video-thumbnail-img" src="$thumbnail">
- <span class="video-duration">$duration</span>
- </a>
-
- <a class="title" href="$url">$title</a>
-
- <span>$subscriber_count</span>
- <span>$size</span>
-
- <span class="description">$description</span>
+ <div class="medium-item-box">
+ <div class="medium-item">
+ <a class="video-thumbnail-box" href="$url" title="$title">
+ <img class="video-thumbnail-img" src="$thumbnail">
+ <span class="video-duration">$duration</span>
+ </a>
+
+ <a class="title" href="$url">$title</a>
+
+ <span>$subscriber_count</span>
+ <span>$size</span>
+
+ <span class="description">$description</span>
+ </div>
</div>
''')