Cody Robibero
2920611ffc
Convert string MediaType to enum MediaType
1 year ago
Patrick Barron
40e1c5f4c6
Remove logger parameter from XmlReaderExtensions.TryReadDateTime
1 year ago
Patrick Barron
1d0ecd3188
More miscellaneous cleanup
1 year ago
Patrick Barron
0e51ffa169
Add TryReadInt to XmlReaderExtensions
1 year ago
Patrick Barron
8a7a1cc723
Add ReadNormalizedString to XmlReaderExtensions
1 year ago
Patrick Barron
99832642ce
Add TryParseDateTime and TryParseDateTimeExact to XmlReaderExtensions
1 year ago
Patrick Barron
1a6ec2c740
Add GetStringArray and GetPersonArray to XmlReaderExtensions
1 year ago
Patrick Barron
bdca4ed322
Add XmlReader.GetPersonFromXmlNode
1 year ago
Stepan Goremykin
6ae1903453
Use TryAdd
2 years ago
Bond-009
9c500bdca3
Merge pull request #9466 from Shadowghost/playlist-fix
2 years ago
Cody Robibero
89be3aa37f
Convert Person.Type to use PersonKind enum ( #9487 )
2 years ago
Shadowghost
76ae599bd3
Fix playlist creation and removal
2 years ago
Bond_009
24a7e210c3
Optimize tryparse
...
* Don't check for null before
* Don't try different formats when not needed (NumberFormat.Integer is the fast path)
2 years ago
Bond_009
b366dc2e6e
Use ArgumentException.ThrowIfNullOrEmpty
2 years ago
Bond_009
52194f56b5
Replace != null with is not null
2 years ago
Julius Vitkauskas
7d7401bf0f
Fix double assignment
2 years ago
Bond_009
a9a5fcde81
Use ArgumentNullException.ThrowIfNull helper method
...
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);
```
2 years ago
Bond_009
1d19a5be61
Fix some warnings
...
down to 580
3 years ago
Cody Robibero
64652b6392
Fix and disable new dotnet6 warnings
3 years ago
Cody Robibero
9234e5bf80
Remove all instances of en-US culture
3 years ago
Bond_009
653df7d8e5
Specify DateTimeStyles when possible
3 years ago
Bond_009
a6d1e542e6
Reduce allocations
3 years ago
Bond_009
f1f72c3060
Minor improvements
3 years ago
BaronGreenback
f2c10471bf
Code Clean up: Use Pattern Matching ( #5838 )
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
4 years ago
Bond_009
a8ed753f6c
FxCop -> Net Analyzers (part 2)
4 years ago
Bond_009
d07eef4f25
Add tests for NFO parsers
4 years ago
crobibero
38885ffd74
Fix nullability errors in MediaBrowser.LocalMetadata
4 years ago
crobibero
ef49e2b21c
Fix nullable string usage.
4 years ago
crobibero
14f32b4927
Remove warnings from MediaBrowser.LocalMetadata
4 years ago
dkanada
403cd3205f
Merge pull request #3254 from crobibero/ilogger
...
Use typed logger where possible
4 years ago
aled
299e49f39d
Fix a small number of compile warnings
4 years ago
aled
22a860a806
Fix a small number of compile warnings
5 years ago
crobibero
44957c5a9a
Use typed logger where possible
5 years ago
Bond_009
87d2479b78
Fix warnings
5 years ago
Bond_009
ffd6dac03a
Remove useless comments
6 years ago
Bond_009
a9302b8b53
Remove useless abstraction around XmlReaderSettings
...
This removes the amount of stuff that needs to be passed around
Also removes some unneeded `ManagedFileSystem` usage
6 years ago
Claus Vium
8985fb8d58
Remove support for games as a media type
6 years ago
Erwin de Haan
a430568082
Unwrapped `OpenRead` and `CopyFile`
6 years ago
Erwin de Haan
38f96af079
Reformat JustAMan review pt2 changes
...
Refs #575
6 years ago
Erwin de Haan
e867446437
ReSharper format: conform inline 'out' parameters.
6 years ago
Erwin de Haan
65bd052f3e
ReSharper conform to 'var' settings
6 years ago
Erwin de Haan
8f41ba4d3a
Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.Model
6 years ago
Erwin de Haan
22879a603e
Visual Studio Reformat: MediaBrowser.LocalMetadata
6 years ago
Erwin de Haan
ec1f5dc317
Mayor code cleanup
...
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.
6 years ago
Bond_009
0f8b3c6347
Use Microsoft.Extensions.Logging abstraction
6 years ago
Bond_009
6e5d2aadaa
Remove custom ToArray extension
6 years ago
stefan
48facb797e
Update to 3.5.2 and .net core 2.1
6 years ago
Luke Pulverenti
e7425e6205
revert servicestack.text update
7 years ago
Luke Pulverenti
40442f887b
consolidate emby.server.core into emby.server.implementations
7 years ago
Luke Pulverenti
6d78824c8e
update components
7 years ago