From ee0a118a6c7ed0e371fed18dcdace1f18a3cabf6 Mon Sep 17 00:00:00 2001
From: James Taylor <user234683@users.noreply.github.com>
Date: Tue, 17 Dec 2019 21:52:31 -0800
Subject: Extraction: Fix thumbnail and remove badges on related videos

---
 youtube/templates/common_elements.html | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'youtube/templates/common_elements.html')

diff --git a/youtube/templates/common_elements.html b/youtube/templates/common_elements.html
index 67655b3..1a417ae 100644
--- a/youtube/templates/common_elements.html
+++ b/youtube/templates/common_elements.html
@@ -14,7 +14,7 @@
     {%- endif -%}
 {% endmacro %}
 
-{% macro item(info, description=false, horizontal=true, include_author=true) %}
+{% macro item(info, description=false, horizontal=true, include_author=true, include_badges=true) %}
     <div class="item-box {{ info['type'] + '-item-box' }} {{'horizontal-item-box' if horizontal else 'vertical-item-box'}} {{'has-description' if description else 'no-description'}}">
         <div class="item {{ info['type'] + '-item' }}">
             <a class="thumbnail-box" href="{{ info['url'] }}" title="{{ info['title'] }}">
@@ -52,7 +52,9 @@
             {% if description %}
                 <span class="description">{{ text_runs(info.get('description', '')) }}</span>
             {% endif %}
-            <span class="badges">{{ info['badges']|join(' | ') }}</span>
+            {% if include_badges %}
+                <span class="badges">{{ info['badges']|join(' | ') }}</span>
+            {% endif %}
         </div>
         {% if info['type'] == 'video' %}
             <input class="item-checkbox" type="checkbox" name="video_info_list" value="{{ info['video_info'] }}" form="playlist-edit">
-- 
cgit v1.2.3