aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs
AgeCommit message (Collapse)Author
2024-01-09Move LiveTv to separate projectPatrick Barron
2022-12-05Replace != null with is not nullBond_009
2022-12-05Replace == null with is nullBond_009
2022-10-06Use ArgumentNullException.ThrowIfNull helper methodBond_009
Did a simple search/replace on the whole repo (except the RSSDP project) This reduces LOC and should improve performance (methods containing a throw statement don't get inlined) ``` if \((\w+) == null\) \s+\{ \s+throw new ArgumentNullException\((.*)\); \s+\} ``` ``` ArgumentNullException.ThrowIfNull($1); ```
2021-10-01Enable nullable for ItemDataProviderBond_009
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-05-20Enable nullable reference types for Emby.Server.ImplementationsBond_009
2021-04-17Remove unused using directivesBaronGreenback
2021-03-13FxCop -> Net Analyzers (part 2)Bond_009
2021-01-12JsonSerializer deserialize from bytes where possibleBond_009
This is faster and uses way less memory ``` BenchmarkDotNet=v0.12.1, OS=fedora 32 Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores .NET Core SDK=5.0.100 [Host] : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT DefaultJob : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT | Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated | |------- |---------:|--------:|--------:|--------:|------:|------:|----------:| | Bytes | 158.4 us | 2.56 us | 2.14 us | 16.8457 | - | - | 52.08 KB | | String | 172.8 us | 0.78 us | 0.70 us | 41.5039 | - | - | 127.82 KB | | Custom | 155.5 us | 2.95 us | 2.76 us | 10.0098 | - | - | 31.27 KB | ```
2020-12-29Use UTF8 encoding and async correctlyDavid
2020-12-24Put json serializer options in private fieldDavid
2020-12-24Use sync string instead of fileDavid
2020-12-23Use streams instead of stringsDavid
2020-12-23Remove custom Json serializer from Emby.Server.ImplementationsDavid
2020-04-01Address commentsBond_009
2020-02-06Fix some warnings in Emby.Server.ImplementationsBond_009
2019-09-12Rewrite `ItemDataProvider` to be more robustBond_009
* Stop locking 2+ times per operation * Don't clone the list multiple times * Keep the lock for the duration of the operation
2019-03-07Reduce the amount of exceptions thrownBond_009
2019-02-20Avoid exceptions due to folder and file not foundPloughPuff
1) Use function to return path to temp transcode path which has benefit of creating temp folder if not exists, thereby avoiding the exception when GetFilePaths is used. 2) Check json files exists before attempting to read from it. Avoids having to mask FileNotFound exceptions when debugging.
2019-02-09Removed some unused fieldsBond_009
2019-01-28Unwrapped CreateDirectory and DeleteDirectoryErwin de Haan
2019-01-28Unwrapped GetDirectoryName and DirectorySeperatorCharErwin de Haan
2019-01-13Find+Sed BOM removal *.cs: BDInfo-Emby.XmlTvErwin de Haan
2019-01-13Visual Studio Reformat: Emby.Server.Implementations Part Liv-PErwin de Haan
2019-01-10Mayor code cleanupErwin de Haan
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.
2018-12-30Fix exception loggingBond_009
2018-12-30Use Microsoft.Extensions.Logging abstractionBond_009
2017-05-26update GetItems methodLuke Pulverenti
2017-05-04improve smb supportLuke Pulverenti
2016-11-13update .net core startupLuke Pulverenti
2016-11-03move classes to portableLuke Pulverenti