Skip to content

Commit

Permalink
better way to display video downloads
Browse files Browse the repository at this point in the history
switching back to HQ MKV/Compat MP4 like old site had, except new pubs only have the latter

fix #1704
  • Loading branch information
vadosnaprimer committed Jan 7, 2024
1 parent 735a1fe commit 94732f3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions TASVideos/Pages/Shared/_MovieModule.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,24 @@
</div>
<div class="col-auto">
<small condition="Model.MirrorSiteUrls.Any()">
A/V files:<br />
Video Downloads:<br />
<span condition="Model.MirrorSiteUrls.Any()">
@foreach (var url in Model.MirrorSiteUrls)
{
<a href="@url.Url" class="ms-2">
@(string.IsNullOrWhiteSpace(url.DisplayName) ? "A/V file" : url.DisplayName) via Mirror
<br/>
</a>
string text = System.IO.Path.GetExtension(url.Url!).Replace(".", "").ToUpper();
if (text == "MKV")
{
text = "High Quality " + text;
}
else if (text == "MP4")
{
text = "Compatibility " + text;
}
if (!string.IsNullOrEmpty(url.DisplayName))
{
text = text + $" ({url.DisplayName})";
}
<a href="@url.Url" class="ms-2">@text<br/></a>
}
</span>
</small>
Expand Down

0 comments on commit 94732f3

Please sign in to comment.