feat: add video download link to wrapup HTML page
Some checks failed
CI / Check / Test (push) Failing after 41s

This commit is contained in:
2026-06-03 01:06:11 +02:00
parent e905842b62
commit 857896f057
4 changed files with 18 additions and 2 deletions

View File

@@ -437,4 +437,5 @@ pub struct WrapUpPageTemplate<'a> {
pub genre_max: u32,
pub rating_pcts: [f64; 5],
pub genre_pcts: Vec<f64>,
pub video_url: Option<String>,
}

View File

@@ -10,6 +10,9 @@
{% if report.total_watch_time_minutes > 0 %}
<div class="wu-detail">{{ watch_time_display }} of watch time</div>
{% endif %}
{% if let Some(url) = video_url %}
<a href="{{ url }}" class="wu-video-link" download>Download Video</a>
{% endif %}
</section>
<section class="wu-section">