Initial commit of auto-adding torrent system

This commit is contained in:
2026-10-11 12:25:32 -04:00
parent 57b2d8835d
commit 32aca8b197
9 changed files with 159 additions and 65 deletions
+12 -1
View File
@@ -35,7 +35,7 @@
<div class="airing-list">
@foreach (var show in Model.AiringShows)
{
<article class="airing-row @(show.IsFuture ? "is-upcoming" : "is-aired")">
<article id="show-@show.ShowID" class="airing-row @(show.IsFuture ? "is-upcoming" : "is-aired")">
@if (!string.IsNullOrWhiteSpace(show.HeroImageUrl))
{
<div class="airing-backdrop" style="background-image: url('@show.HeroImageUrl');" aria-hidden="true"></div>
@@ -169,6 +169,17 @@
{
<a href="@show.AnilistUrl" target="_blank" rel="noopener noreferrer" class="btn btn-sm btn-outline-info">AniList</a>
}
@if (show.Download)
{
<span class="btn btn-sm btn-success disabled" aria-disabled="true">✓ Marked for download</span>
}
else
{
<form method="post" asp-page-handler="Download" class="d-inline">
<input type="hidden" name="showId" value="@show.ShowID" />
<button type="submit" class="btn btn-sm btn-outline-success">⬇ Download</button>
</form>
}
@if (show.SecondaryImages.Count > 0)
{