aboutsummaryrefslogtreecommitdiff
path: root/Emby.XmlTv
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.XmlTv')
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Console/Classes/EntityExtensions.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Console/Emby.XmlTv.Console.csproj2
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Console/Program.cs4
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Console/Properties/AssemblyInfo.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Test/Emby.XmlTv.Test.csproj15
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Test/Properties/AssemblyInfo.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderDateTimeTests.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderLanguageTests.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderTests.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv.sln2
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Classes/XmlTvReader.cs11
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Emby.XmlTv.csproj1
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvChannel.cs4
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCredit.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCreditType.cs4
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvEpisode.cs1
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvIcon.cs1
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvLanguage.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvPremiere.cs6
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvProgram.cs2
-rw-r--r--Emby.XmlTv/Emby.XmlTv/Entities/XmlTvRating.cs1
-rw-r--r--Emby.XmlTv/Emby.XmlTv/XmlTvSchema.dtd2
-rw-r--r--Emby.XmlTv/Nuget/Emby.XmlTv.nuspec2
23 files changed, 29 insertions, 45 deletions
diff --git a/Emby.XmlTv/Emby.XmlTv.Console/Classes/EntityExtensions.cs b/Emby.XmlTv/Emby.XmlTv.Console/Classes/EntityExtensions.cs
index 37fcf0eca..96e508f12 100644
--- a/Emby.XmlTv/Emby.XmlTv.Console/Classes/EntityExtensions.cs
+++ b/Emby.XmlTv/Emby.XmlTv.Console/Classes/EntityExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Linq;
using System.Text;
diff --git a/Emby.XmlTv/Emby.XmlTv.Console/Emby.XmlTv.Console.csproj b/Emby.XmlTv/Emby.XmlTv.Console/Emby.XmlTv.Console.csproj
index 6ce4cff2c..c10b28e82 100644
--- a/Emby.XmlTv/Emby.XmlTv.Console/Emby.XmlTv.Console.csproj
+++ b/Emby.XmlTv/Emby.XmlTv.Console/Emby.XmlTv.Console.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
diff --git a/Emby.XmlTv/Emby.XmlTv.Console/Program.cs b/Emby.XmlTv/Emby.XmlTv.Console/Program.cs
index e72d94bf5..3e0c7d125 100644
--- a/Emby.XmlTv/Emby.XmlTv.Console/Program.cs
+++ b/Emby.XmlTv/Emby.XmlTv.Console/Program.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
@@ -100,4 +100,4 @@ namespace Emby.XmlTv.Console
return count;
}
}
-} \ No newline at end of file
+}
diff --git a/Emby.XmlTv/Emby.XmlTv.Console/Properties/AssemblyInfo.cs b/Emby.XmlTv/Emby.XmlTv.Console/Properties/AssemblyInfo.cs
index 4178a27a1..ff59f890f 100644
--- a/Emby.XmlTv/Emby.XmlTv.Console/Properties/AssemblyInfo.cs
+++ b/Emby.XmlTv/Emby.XmlTv.Console/Properties/AssemblyInfo.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
diff --git a/Emby.XmlTv/Emby.XmlTv.Test/Emby.XmlTv.Test.csproj b/Emby.XmlTv/Emby.XmlTv.Test/Emby.XmlTv.Test.csproj
index 7ffb30b93..d7c4ad0b7 100644
--- a/Emby.XmlTv/Emby.XmlTv.Test/Emby.XmlTv.Test.csproj
+++ b/Emby.XmlTv/Emby.XmlTv.Test/Emby.XmlTv.Test.csproj
@@ -1,5 +1,6 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build"
+ xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -109,15 +110,15 @@
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
- <PropertyGroup>
- <TargetFramework>netstandard2.0</TargetFramework>
- <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
- </PropertyGroup>
+ <PropertyGroup>
+ <TargetFramework>netstandard2.0</TargetFramework>
+ <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
+ </PropertyGroup>
</Project>
diff --git a/Emby.XmlTv/Emby.XmlTv.Test/Properties/AssemblyInfo.cs b/Emby.XmlTv/Emby.XmlTv.Test/Properties/AssemblyInfo.cs
index e79fda8a8..902860363 100644
--- a/Emby.XmlTv/Emby.XmlTv.Test/Properties/AssemblyInfo.cs
+++ b/Emby.XmlTv/Emby.XmlTv.Test/Properties/AssemblyInfo.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
diff --git a/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderDateTimeTests.cs b/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderDateTimeTests.cs
index 2e4516be5..857cc339c 100644
--- a/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderDateTimeTests.cs
+++ b/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderDateTimeTests.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.IO;
using Emby.XmlTv.Classes;
diff --git a/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderLanguageTests.cs b/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderLanguageTests.cs
index 77dabe13e..32a0431d2 100644
--- a/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderLanguageTests.cs
+++ b/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderLanguageTests.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.IO;
using System.Linq;
using System.Threading;
diff --git a/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderTests.cs b/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderTests.cs
index 1485cf06c..b1dffc59c 100644
--- a/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderTests.cs
+++ b/Emby.XmlTv/Emby.XmlTv.Test/XmlTvReaderTests.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.IO;
using System.Linq;
using System.Threading;
diff --git a/Emby.XmlTv/Emby.XmlTv.sln b/Emby.XmlTv/Emby.XmlTv.sln
index 519cbfc9d..8243d4b72 100644
--- a/Emby.XmlTv/Emby.XmlTv.sln
+++ b/Emby.XmlTv/Emby.XmlTv.sln
@@ -1,4 +1,4 @@
-
+
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
diff --git a/Emby.XmlTv/Emby.XmlTv/Classes/XmlTvReader.cs b/Emby.XmlTv/Emby.XmlTv/Classes/XmlTvReader.cs
index aa4840664..52e58ed8d 100644
--- a/Emby.XmlTv/Emby.XmlTv/Classes/XmlTvReader.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Classes/XmlTvReader.cs
@@ -34,7 +34,7 @@ namespace Emby.XmlTv.Classes
private static XmlReader CreateXmlTextReader(string path)
{
- XmlReaderSettings settings = new XmlReaderSettings();
+ var settings = new XmlReaderSettings();
// https://msdn.microsoft.com/en-us/library/system.xml.xmlreadersettings.xmlresolver(v=vs.110).aspx
// Looks like we don't need this anyway?
@@ -140,8 +140,7 @@ namespace Emby.XmlTv.Classes
private void SetChannelNumber(XmlTvChannel channel, string value)
{
value = value.Replace("-", ".");
- double number;
- if (double.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out number))
+ if (double.TryParse(value, NumberStyles.Any, CultureInfo.InvariantCulture, out var number))
{
channel.Number = value;
}
@@ -426,8 +425,7 @@ namespace Emby.XmlTv.Classes
if (textValue.Contains("/"))
{
var components = textValue.Split('/');
- float value;
- if (float.TryParse(components[0], out value))
+ if (float.TryParse(components[0], out var value))
{
result.StarRating = value;
}
@@ -1053,8 +1051,7 @@ namespace Emby.XmlTv.Classes
}
var standardDate = string.Format("{0} {1}", dateComponent, dateOffset);
- DateTimeOffset parsedDateTime;
- if (DateTimeOffset.TryParseExact(standardDate, "yyyyMMddHHmmss zzz", CultureInfo.CurrentCulture, DateTimeStyles.None, out parsedDateTime))
+ if (DateTimeOffset.TryParseExact(standardDate, "yyyyMMddHHmmss zzz", CultureInfo.CurrentCulture, DateTimeStyles.None, out var parsedDateTime))
{
return parsedDateTime.ToUniversalTime();
}
diff --git a/Emby.XmlTv/Emby.XmlTv/Emby.XmlTv.csproj b/Emby.XmlTv/Emby.XmlTv/Emby.XmlTv.csproj
index 41dd9dd97..baa522ee3 100644
--- a/Emby.XmlTv/Emby.XmlTv/Emby.XmlTv.csproj
+++ b/Emby.XmlTv/Emby.XmlTv/Emby.XmlTv.csproj
@@ -1,4 +1,3 @@
-
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvChannel.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvChannel.cs
index 2240fd9d4..2673d711c 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvChannel.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvChannel.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Text;
namespace Emby.XmlTv.Entities
@@ -47,4 +47,4 @@ namespace Emby.XmlTv.Entities
return builder.ToString();
}
}
-} \ No newline at end of file
+}
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCredit.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCredit.cs
index 0077a3e6e..d959ce76f 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCredit.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCredit.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Emby.XmlTv.Entities
{
public class XmlTvCredit
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCreditType.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCreditType.cs
index e54f24346..31c7f5e44 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCreditType.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvCreditType.cs
@@ -1,4 +1,4 @@
-namespace Emby.XmlTv.Entities
+namespace Emby.XmlTv.Entities
{
public enum XmlTvCreditType
{
@@ -14,4 +14,4 @@
Commentator,
Guest
}
-} \ No newline at end of file
+}
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvEpisode.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvEpisode.cs
index de84ab5ba..47525b57c 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvEpisode.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvEpisode.cs
@@ -1,4 +1,3 @@
-using System;
using System.Text;
namespace Emby.XmlTv.Entities
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvIcon.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvIcon.cs
index 3417a717b..77ef8d5fd 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvIcon.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvIcon.cs
@@ -1,4 +1,3 @@
-using System;
using System.Text;
namespace Emby.XmlTv.Entities
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvLanguage.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvLanguage.cs
index fea387244..0fd5573cd 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvLanguage.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvLanguage.cs
@@ -1,5 +1,3 @@
-using System;
-
namespace Emby.XmlTv.Entities
{
public class XmlTvLanguage
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvPremiere.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvPremiere.cs
index 6b7e49055..a1920bc77 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvPremiere.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvPremiere.cs
@@ -1,9 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
namespace Emby.XmlTv.Entities
{
public class XmlTvPremiere
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvProgram.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvProgram.cs
index b6614afc1..1725e17d7 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvProgram.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvProgram.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Text;
diff --git a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvRating.cs b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvRating.cs
index 381294e7e..e37113d7a 100644
--- a/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvRating.cs
+++ b/Emby.XmlTv/Emby.XmlTv/Entities/XmlTvRating.cs
@@ -1,4 +1,3 @@
-using System;
using System.Text;
namespace Emby.XmlTv.Entities
diff --git a/Emby.XmlTv/Emby.XmlTv/XmlTvSchema.dtd b/Emby.XmlTv/Emby.XmlTv/XmlTvSchema.dtd
index f723eadc0..889939224 100644
--- a/Emby.XmlTv/Emby.XmlTv/XmlTvSchema.dtd
+++ b/Emby.XmlTv/Emby.XmlTv/XmlTvSchema.dtd
@@ -1,4 +1,4 @@
-<!-- DTD for TV listings
+<!-- DTD for TV listings
This is a DTD to represent a TV listing. It doesn't explicitly group
programmes by day or by channel, instead broadcast time and channel
diff --git a/Emby.XmlTv/Nuget/Emby.XmlTv.nuspec b/Emby.XmlTv/Nuget/Emby.XmlTv.nuspec
index 06d290548..087ce1e6e 100644
--- a/Emby.XmlTv/Nuget/Emby.XmlTv.nuspec
+++ b/Emby.XmlTv/Nuget/Emby.XmlTv.nuspec
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Emby.XmlTv</id>