Add file cache.
[audio.git] / src / archive / templates / archive / file_managed.html
index 33a6646..adb42c7 100644 (file)
                 {% csrf_token %}
                 <input class="btn btn-primary" type="submit" value="{% trans "Publish on YouTube" %}" />
               </form>
+              <br>
+              {% if audiobook.youtube_id %}
+                <form method="post" action="{% url 'youtube_update' audiobook.id %}">
+                  {% csrf_token %}
+                  <input class="btn btn-secondary" type="submit" value="{% trans "Update YouTube metadata" %}">
+                </form>
+              {% endif %}
 
-              <form class="mt-3" method="post" action="{% url 'youtube_convert' audiobook.id %}">
-                {% csrf_token %}
-                <input class="btn btn-secondary" type="submit" value="{% trans "Convert without publishing" %}" />
-              </form>
             </div>
           </div>
         </td></tr>
             <p>
               <a href="https://youtu.be/{{ audiobook.youtube_id }}" target="_blank">{% trans "See on YouTube" %}</a>
             </p>
-            <form method="post" action="{% url 'youtube_update' audiobook.id %}">
-              {% csrf_token %}
-              <input class="btn btn-secondary" type="submit" value="{% trans "Update YouTube metadata" %}">
-            </form>
           {% endif %}
           {% if audiobook.youtube_published %}
             <p>{% trans "Published:" %} {{ audiobook.youtube_published }}</a></p>