rework television media (#26)
* rework television media * refactor poster saving * television and movie views are working again * remove dead code * use paper styling for all cards * add show poster, plot to seasons page * remove missing shows; cleanup interfaces * fix split show display (same show in different folders/sources) * add placeholder "add to schedule" button * no more duplicate television shows, even with the same show split across sources * stop releasing CLI for now * use season number as season placeholder * add television shows to collections * add television seasons to collections * add television episodes to collections * add movies to collections * remove movies, shows, seasons, episodes from collections * fix page width and menus * fix buffer size defaults * fix chronological episode ordering * allow deleting media collections * don't get stuck building a playout with an empty collection * schedule editing and playouts work again * minor cleanup * remove dead code * fix bugs with viewing movies as they are loading * add scanner tests; support nested movie folders * update collections docs * rearrange order of schedule items * add show and season to schedule * delete schedules that use legacy collections, reset all posters * move cleanup to new migration * load fallback metadata when nfo fails; don't require metadata in ui * update readme and screenshots
This commit is contained in:
@@ -7,61 +7,63 @@
|
||||
@inject IDialogService Dialog
|
||||
@inject IMediator Mediator
|
||||
|
||||
<MudTable Hover="true" Items="_channels">
|
||||
<ToolBarContent>
|
||||
<MudText Typo="Typo.h6">Channels</MudText>
|
||||
</ToolBarContent>
|
||||
<ColGroup>
|
||||
<col style="width: 60px;"/>
|
||||
<col/>
|
||||
<col style="width: 20%"/>
|
||||
<col style="width: 20%"/>
|
||||
<col style="width: 20%"/>
|
||||
<col style="width: 60px;"/>
|
||||
</ColGroup>
|
||||
<HeaderContent>
|
||||
<MudTh>
|
||||
<MudTableSortLabel InitialDirection="SortDirection.Ascending" SortBy="new Func<ChannelViewModel, object>(x => x.Number)">Number</MudTableSortLabel>
|
||||
</MudTh>
|
||||
<MudTh>Logo</MudTh>
|
||||
<MudTh>
|
||||
<MudTableSortLabel SortBy="new Func<ChannelViewModel, object>(x => x.Name)">Name</MudTableSortLabel>
|
||||
</MudTh>
|
||||
<MudTh>Streaming Mode</MudTh>
|
||||
<MudTh>FFmpeg Profile</MudTh>
|
||||
<MudTh/>
|
||||
</HeaderContent>
|
||||
<RowTemplate>
|
||||
<MudTd DataLabel="Number">@context.Number</MudTd>
|
||||
<MudTd DataLabel="Logo">
|
||||
@if (!string.IsNullOrWhiteSpace(context.Logo))
|
||||
{
|
||||
<MudElement HtmlTag="img" src="@($"iptv/images/{context.Logo}")" Style="max-height: 50px"/>
|
||||
}
|
||||
</MudTd>
|
||||
<MudTd DataLabel="Name">@context.Name</MudTd>
|
||||
<MudTd DataLabel="Streaming Mode">@context.StreamingMode</MudTd>
|
||||
<MudTd DataLabel="FFmpeg Profile">
|
||||
@if (context.StreamingMode == StreamingMode.TransportStream)
|
||||
{
|
||||
@_ffmpegProfiles.Find(p => p.Id == context.FFmpegProfileId)?.Name
|
||||
}
|
||||
</MudTd>
|
||||
<MudTd>
|
||||
<MudMenu Icon="@Icons.Material.Filled.MoreVert">
|
||||
<MudMenuItem Icon="@Icons.Material.Filled.Edit" Link="@($"/channels/{context.Id}")">
|
||||
Edit
|
||||
</MudMenuItem>
|
||||
<MudMenuItem Icon="@Icons.Material.Filled.Delete" OnClick="@(_ => DeleteChannelAsync(context))">
|
||||
Delete
|
||||
</MudMenuItem>
|
||||
</MudMenu>
|
||||
</MudTd>
|
||||
</RowTemplate>
|
||||
</MudTable>
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" Link="/channels/add" Class="mt-4">
|
||||
Add Channel
|
||||
</MudButton>
|
||||
<MudContainer MaxWidth="MaxWidth.ExtraLarge">
|
||||
<MudTable Hover="true" Items="_channels">
|
||||
<ToolBarContent>
|
||||
<MudText Typo="Typo.h6">Channels</MudText>
|
||||
</ToolBarContent>
|
||||
<ColGroup>
|
||||
<col style="width: 60px;"/>
|
||||
<col/>
|
||||
<col style="width: 20%"/>
|
||||
<col style="width: 20%"/>
|
||||
<col style="width: 20%"/>
|
||||
<col style="width: 60px;"/>
|
||||
</ColGroup>
|
||||
<HeaderContent>
|
||||
<MudTh>
|
||||
<MudTableSortLabel InitialDirection="SortDirection.Ascending" SortBy="new Func<ChannelViewModel, object>(x => x.Number)">Number</MudTableSortLabel>
|
||||
</MudTh>
|
||||
<MudTh>Logo</MudTh>
|
||||
<MudTh>
|
||||
<MudTableSortLabel SortBy="new Func<ChannelViewModel, object>(x => x.Name)">Name</MudTableSortLabel>
|
||||
</MudTh>
|
||||
<MudTh>Streaming Mode</MudTh>
|
||||
<MudTh>FFmpeg Profile</MudTh>
|
||||
<MudTh/>
|
||||
</HeaderContent>
|
||||
<RowTemplate>
|
||||
<MudTd DataLabel="Number">@context.Number</MudTd>
|
||||
<MudTd DataLabel="Logo">
|
||||
@if (!string.IsNullOrWhiteSpace(context.Logo))
|
||||
{
|
||||
<MudElement HtmlTag="img" src="@($"iptv/images/{context.Logo}")" Style="max-height: 50px"/>
|
||||
}
|
||||
</MudTd>
|
||||
<MudTd DataLabel="Name">@context.Name</MudTd>
|
||||
<MudTd DataLabel="Streaming Mode">@context.StreamingMode</MudTd>
|
||||
<MudTd DataLabel="FFmpeg Profile">
|
||||
@if (context.StreamingMode == StreamingMode.TransportStream)
|
||||
{
|
||||
@_ffmpegProfiles.Find(p => p.Id == context.FFmpegProfileId)?.Name
|
||||
}
|
||||
</MudTd>
|
||||
<MudTd>
|
||||
<MudMenu Icon="@Icons.Material.Filled.MoreVert" Direction="Direction.Left" OffsetX="true">
|
||||
<MudMenuItem Icon="@Icons.Material.Filled.Edit" Link="@($"/channels/{context.Id}")">
|
||||
Edit
|
||||
</MudMenuItem>
|
||||
<MudMenuItem Icon="@Icons.Material.Filled.Delete" OnClick="@(_ => DeleteChannelAsync(context))">
|
||||
Delete
|
||||
</MudMenuItem>
|
||||
</MudMenu>
|
||||
</MudTd>
|
||||
</RowTemplate>
|
||||
</MudTable>
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" Link="/channels/add" Class="mt-4">
|
||||
Add Channel
|
||||
</MudButton>
|
||||
</MudContainer>
|
||||
|
||||
@code {
|
||||
private List<ChannelViewModel> _channels;
|
||||
|
||||
Reference in New Issue
Block a user