dependencies and code cleanup (#2117)

* fix validation in new form layout

* pin mediatr to last oss version

* update dependencies

* cleanup code in core

* cleanup code in ffmpeg

* cleanup code in infra

* cleanup code in scanner

* cleanup code in application

* cleanup main code

* cleanup test code

* solution-wide code cleanup
This commit is contained in:
Jason Dove
2025-07-06 15:56:17 +00:00
committed by GitHub
parent fa6a31b4fc
commit 7e30444857
313 changed files with 4207 additions and 4202 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ public class ChannelGuide
xml.WriteRaw(_channelsFragment);
foreach ((string channelNumber, string channelDataFragment) in _channelDataFragments.OrderBy(
kvp => decimal.Parse(kvp.Key, CultureInfo.InvariantCulture)))
foreach ((string channelNumber, string channelDataFragment) in _channelDataFragments.OrderBy(kvp =>
decimal.Parse(kvp.Key, CultureInfo.InvariantCulture)))
{
xml.WriteRaw(channelDataFragment);
}
+3 -6
View File
@@ -4,16 +4,13 @@ namespace ErsatzTV.Core.Iptv;
public static class ChannelIdentifier
{
public static string LegacyFromNumber(string channelNumber)
{
return $"{channelNumber}.etv";
}
public static string LegacyFromNumber(string channelNumber) => $"{channelNumber}.etv";
public static string FromNumber(string channelNumber)
{
// get rid of any decimal (only two are allowed)
int number = (int)(decimal.Parse(channelNumber, CultureInfo.InvariantCulture) * 100);
int id = 0;
var number = (int)(decimal.Parse(channelNumber, CultureInfo.InvariantCulture) * 100);
var id = 0;
while (number != 0)
{
id += number % 10 + 48;
-1
View File
@@ -1,5 +1,4 @@
using System.Globalization;
using System.Net;
using System.Text;
using ErsatzTV.Core.Domain;