Browse Source

fix channel sort number when reordering channels

pull/2700/head
Jason Dove 8 months ago
parent
commit
aa2e9eaf34
No known key found for this signature in database
  1. 2
      CHANGELOG.md
  2. 2
      ErsatzTV.Application/Channels/Commands/UpdateChannelNumbersHandler.cs

2
CHANGELOG.md

@ -40,6 +40,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -40,6 +40,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix loading requested number of epg entries for motion graphics elements
- Fix bug with mirror channels where seemingly random content would be played every ~40 seconds
- Fix chronological sorting for Other Videos that have release date metadata
- Fix playout sorting after using channel number editor
- If your playouts are sorted incorrectly, use the channel number editor to fix (swap two channels, then swap them back)
### Changed
- No longer round framerate to nearest integer when normalizing framerate

2
ErsatzTV.Application/Channels/Commands/UpdateChannelNumbersHandler.cs

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
using System.Globalization;
using System.Threading.Channels;
using ErsatzTV.Core;
using ErsatzTV.Infrastructure.Data;
@ -38,6 +39,7 @@ public class UpdateChannelNumbersHandler( @@ -38,6 +39,7 @@ public class UpdateChannelNumbersHandler(
foreach (var channel in channelsToUpdate)
{
channel.Number = numberUpdates[channel.Id];
channel.SortNumber = double.Parse(numberUpdates[channel.Id], CultureInfo.InvariantCulture);
}
// save those changes

Loading…
Cancel
Save